#include "remoting/protocol/secure_channel_factory.h"
#include <utility>
#include "base/functional/bind.h"
#include "remoting/protocol/authenticator.h"
#include "remoting/protocol/channel_authenticator.h"
#include "remoting/protocol/p2p_stream_socket.h"
namespace remoting::protocol {
SecureChannelFactory::SecureChannelFactory(
StreamChannelFactory* channel_factory,
Authenticator* authenticator)
: … { … }
SecureChannelFactory::~SecureChannelFactory() { … }
void SecureChannelFactory::CreateChannel(const std::string& name,
ChannelCreatedCallback callback) { … }
void SecureChannelFactory::CancelChannelCreation(const std::string& name) { … }
void SecureChannelFactory::OnBaseChannelCreated(
const std::string& name,
ChannelCreatedCallback callback,
std::unique_ptr<P2PStreamSocket> socket) { … }
void SecureChannelFactory::OnSecureChannelCreated(
const std::string& name,
ChannelCreatedCallback callback,
int error,
std::unique_ptr<P2PStreamSocket> socket) { … }
}