#include "remoting/protocol/ice_connection_to_host.h"
#include <memory>
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/location.h"
#include "base/task/single_thread_task_runner.h"
#include "remoting/base/constants.h"
#include "remoting/protocol/audio_decode_scheduler.h"
#include "remoting/protocol/audio_reader.h"
#include "remoting/protocol/audio_stub.h"
#include "remoting/protocol/auth_util.h"
#include "remoting/protocol/client_control_dispatcher.h"
#include "remoting/protocol/client_event_dispatcher.h"
#include "remoting/protocol/client_stub.h"
#include "remoting/protocol/client_video_dispatcher.h"
#include "remoting/protocol/clipboard_stub.h"
#include "remoting/protocol/errors.h"
#include "remoting/protocol/ice_transport.h"
#include "remoting/protocol/transport_context.h"
#include "remoting/protocol/video_renderer.h"
namespace remoting::protocol {
IceConnectionToHost::IceConnectionToHost() = default;
IceConnectionToHost::~IceConnectionToHost() { … }
void IceConnectionToHost::Connect(
std::unique_ptr<Session> session,
scoped_refptr<TransportContext> transport_context,
HostEventCallback* event_callback) { … }
void IceConnectionToHost::Disconnect(ErrorCode error) { … }
void IceConnectionToHost::ApplyNetworkSettings(
const NetworkSettings& settings) { … }
const SessionConfig& IceConnectionToHost::config() { … }
ClipboardStub* IceConnectionToHost::clipboard_forwarder() { … }
HostStub* IceConnectionToHost::host_stub() { … }
InputStub* IceConnectionToHost::input_stub() { … }
void IceConnectionToHost::set_client_stub(ClientStub* client_stub) { … }
void IceConnectionToHost::set_clipboard_stub(ClipboardStub* clipboard_stub) { … }
void IceConnectionToHost::set_video_renderer(VideoRenderer* video_renderer) { … }
void IceConnectionToHost::InitializeAudio(
scoped_refptr<base::SingleThreadTaskRunner> audio_decode_task_runner,
base::WeakPtr<AudioStub> audio_stub) { … }
void IceConnectionToHost::OnSessionStateChange(Session::State state) { … }
void IceConnectionToHost::OnIceTransportRouteChange(
const std::string& channel_name,
const TransportRoute& route) { … }
void IceConnectionToHost::OnIceTransportError(ErrorCode error) { … }
void IceConnectionToHost::OnChannelInitialized(
ChannelDispatcherBase* channel_dispatcher) { … }
void IceConnectionToHost::OnChannelClosed(
ChannelDispatcherBase* channel_dispatcher) { … }
void IceConnectionToHost::OnVideoChannelStatus(bool active) { … }
ConnectionToHost::State IceConnectionToHost::state() const { … }
void IceConnectionToHost::NotifyIfChannelsReady() { … }
void IceConnectionToHost::CloseChannels() { … }
void IceConnectionToHost::SetState(State state, ErrorCode error) { … }
}