#include "remoting/protocol/client_control_dispatcher.h"
#include <stdint.h>
#include "base/functional/callback.h"
#include "base/functional/callback_helpers.h"
#include "net/socket/stream_socket.h"
#include "remoting/base/compound_buffer.h"
#include "remoting/base/constants.h"
#include "remoting/proto/control.pb.h"
#include "remoting/proto/internal.pb.h"
#include "remoting/protocol/client_stub.h"
#include "remoting/protocol/message_pipe.h"
#include "remoting/protocol/message_serialization.h"
namespace remoting::protocol {
namespace {
const int kBytesPerPixel = …;
bool CursorShapeIsValid(const CursorShapeInfo& cursor_shape) { … }
}
ClientControlDispatcher::ClientControlDispatcher()
: … { … }
ClientControlDispatcher::~ClientControlDispatcher() = default;
void ClientControlDispatcher::InjectClipboardEvent(
const ClipboardEvent& event) { … }
void ClientControlDispatcher::NotifyClientResolution(
const ClientResolution& resolution) { … }
void ClientControlDispatcher::ControlVideo(const VideoControl& video_control) { … }
void ClientControlDispatcher::ControlAudio(const AudioControl& audio_control) { … }
void ClientControlDispatcher::SetCapabilities(
const Capabilities& capabilities) { … }
void ClientControlDispatcher::RequestPairing(
const PairingRequest& pairing_request) { … }
void ClientControlDispatcher::DeliverClientMessage(
const ExtensionMessage& message) { … }
void ClientControlDispatcher::SelectDesktopDisplay(
const SelectDesktopDisplayRequest& select_display) { … }
void ClientControlDispatcher::ControlPeerConnection(
const protocol::PeerConnectionParameters& parameters) { … }
void ClientControlDispatcher::SetVideoLayout(const VideoLayout& video_layout) { … }
void ClientControlDispatcher::OnIncomingMessage(
std::unique_ptr<CompoundBuffer> buffer) { … }
}