#include "remoting/protocol/client_video_dispatcher.h"
#include <utility>
#include "base/functional/bind.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/video.pb.h"
#include "remoting/protocol/client_stub.h"
#include "remoting/protocol/message_pipe.h"
#include "remoting/protocol/message_serialization.h"
#include "remoting/protocol/video_stub.h"
namespace remoting::protocol {
struct ClientVideoDispatcher::PendingFrame { … };
ClientVideoDispatcher::ClientVideoDispatcher(VideoStub* video_stub,
ClientStub* client_stub)
: … { … }
ClientVideoDispatcher::~ClientVideoDispatcher() = default;
void ClientVideoDispatcher::OnIncomingMessage(
std::unique_ptr<CompoundBuffer> message) { … }
void ClientVideoDispatcher::OnPacketDone(
PendingFramesList::iterator pending_frame) { … }
}