#include "remoting/protocol/host_video_stats_dispatcher.h"
#include <utility>
#include "base/functional/bind.h"
#include "net/socket/stream_socket.h"
#include "remoting/base/compound_buffer.h"
#include "remoting/base/constants.h"
#include "remoting/proto/video_stats.pb.h"
#include "remoting/protocol/frame_stats.h"
#include "remoting/protocol/message_pipe.h"
#include "remoting/protocol/message_serialization.h"
#include "remoting/protocol/video_stats_stub.h"
namespace remoting::protocol {
HostVideoStatsDispatcher::HostVideoStatsDispatcher(
const std::string& stream_name)
: … { … }
HostVideoStatsDispatcher::~HostVideoStatsDispatcher() = default;
base::WeakPtr<HostVideoStatsDispatcher> HostVideoStatsDispatcher::GetWeakPtr() { … }
void HostVideoStatsDispatcher::OnVideoFrameStats(uint32_t frame_id,
const HostFrameStats& stats) { … }
void HostVideoStatsDispatcher::OnIncomingMessage(
std::unique_ptr<CompoundBuffer> message) { … }
}