#include "remoting/protocol/ice_transport.h"
#include <memory>
#include "base/functional/bind.h"
#include "remoting/protocol/channel_authenticator.h"
#include "remoting/protocol/channel_multiplexer.h"
#include "remoting/protocol/pseudotcp_channel_factory.h"
#include "remoting/protocol/secure_channel_factory.h"
#include "remoting/protocol/stream_channel_factory.h"
#include "remoting/protocol/stream_message_pipe_adapter.h"
#include "remoting/protocol/transport_context.h"
namespace remoting::protocol {
const int kTransportInfoSendDelayMs = …;
static const char kMuxChannelName[] = …;
IceTransport::IceTransport(scoped_refptr<TransportContext> transport_context,
EventHandler* event_handler)
: … { … }
IceTransport::~IceTransport() { … }
void IceTransport::Start(
Authenticator* authenticator,
SendTransportInfoCallback send_transport_info_callback) { … }
bool IceTransport::ProcessTransportInfo(
jingle_xmpp::XmlElement* transport_info_xml) { … }
MessageChannelFactory* IceTransport::GetChannelFactory() { … }
MessageChannelFactory* IceTransport::GetMultiplexedChannelFactory() { … }
void IceTransport::ApplyNetworkSettings(const NetworkSettings& settings) { … }
void IceTransport::CreateChannel(const std::string& name,
ChannelCreatedCallback callback) { … }
void IceTransport::CancelChannelCreation(const std::string& name) { … }
void IceTransport::AddPendingRemoteTransportInfo(IceTransportChannel* channel) { … }
void IceTransport::OnChannelIceCredentials(IceTransportChannel* channel,
const std::string& ufrag,
const std::string& password) { … }
void IceTransport::OnChannelCandidate(IceTransportChannel* channel,
const cricket::Candidate& candidate) { … }
void IceTransport::OnChannelRouteChange(IceTransportChannel* channel,
const TransportRoute& route) { … }
void IceTransport::OnChannelFailed(IceTransportChannel* channel) { … }
void IceTransport::OnChannelDeleted(IceTransportChannel* channel) { … }
void IceTransport::EnsurePendingTransportInfoMessage() { … }
void IceTransport::SendTransportInfo() { … }
void IceTransport::OnChannelError(int error) { … }
}