chromium/net/ssl/threaded_ssl_private_key.cc

// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "net/ssl/threaded_ssl_private_key.h"

#include <string>
#include <tuple>
#include <utility>

#include "base/functional/bind.h"
#include "base/location.h"
#include "base/task/single_thread_task_runner.h"

namespace net {

namespace {

void DoCallback(
    const base::WeakPtr<ThreadedSSLPrivateKey>& key,
    SSLPrivateKey::SignCallback callback,
    std::tuple<Error, std::unique_ptr<std::vector<uint8_t>>> result) {}

}  // anonymous namespace

class ThreadedSSLPrivateKey::Core
    : public base::RefCountedThreadSafe<ThreadedSSLPrivateKey::Core> {};

ThreadedSSLPrivateKey::ThreadedSSLPrivateKey(
    std::unique_ptr<ThreadedSSLPrivateKey::Delegate> delegate,
    scoped_refptr<base::SingleThreadTaskRunner> task_runner)
    :{}

std::string ThreadedSSLPrivateKey::GetProviderName() {}

std::vector<uint16_t> ThreadedSSLPrivateKey::GetAlgorithmPreferences() {}

void ThreadedSSLPrivateKey::Sign(uint16_t algorithm,
                                 base::span<const uint8_t> input,
                                 SSLPrivateKey::SignCallback callback) {}

ThreadedSSLPrivateKey::~ThreadedSSLPrivateKey() = default;

}  // namespace net