chromium/third_party/openscreen/src/cast/sender/channel/sender_socket_factory.cc

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

#include "cast/sender/public/sender_socket_factory.h"

#include "cast/common/channel/proto/cast_channel.pb.h"
#include "cast/common/public/trust_store.h"
#include "cast/sender/channel/cast_auth_util.h"
#include "cast/sender/channel/message_util.h"
#include "platform/base/tls_connect_options.h"
#include "util/crypto/certificate_utils.h"
#include "util/osp_logging.h"


namespace openscreen::cast {

CastMessage;

SenderSocketFactory::Client::~Client() = default;

bool operator<(const std::unique_ptr<SenderSocketFactory::PendingAuth>& a,
               int b) {}

bool operator<(int a,
               const std::unique_ptr<SenderSocketFactory::PendingAuth>& b) {}

SenderSocketFactory::SenderSocketFactory(Client& client,
                                         TaskRunner& task_runner)
    :{}

SenderSocketFactory::SenderSocketFactory(
    Client& client,
    TaskRunner& task_runner,
    std::unique_ptr<TrustStore> cast_trust_store,
    std::unique_ptr<TrustStore> crl_trust_store)
    :{}

SenderSocketFactory::~SenderSocketFactory() {}

void SenderSocketFactory::set_factory(TlsConnectionFactory* factory) {}

void SenderSocketFactory::Connect(const IPEndpoint& endpoint,
                                  DeviceMediaPolicy media_policy,
                                  CastSocket::Client* client) {}

void SenderSocketFactory::OnAccepted(
    TlsConnectionFactory* factory,
    std::vector<uint8_t> der_x509_peer_cert,
    std::unique_ptr<TlsConnection> connection) {}

void SenderSocketFactory::OnConnected(
    TlsConnectionFactory* factory,
    std::vector<uint8_t> der_x509_peer_cert,
    std::unique_ptr<TlsConnection> connection) {}

void SenderSocketFactory::OnConnectionFailed(TlsConnectionFactory* factory,
                                             const IPEndpoint& remote_address) {}

void SenderSocketFactory::OnError(TlsConnectionFactory* factory,
                                  const Error& error) {}

std::vector<SenderSocketFactory::PendingConnection>::iterator
SenderSocketFactory::FindPendingConnection(const IPEndpoint& endpoint) {}

void SenderSocketFactory::OnError(CastSocket* socket, const Error& error) {}

void SenderSocketFactory::OnMessage(CastSocket* socket, CastMessage message) {}

}  // namespace openscreen::cast