Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(538)

Unified Diff: remoting/host/client_session.h

Issue 2083843002: Replace VideoStream::SizeCallback with VideoStream::Observer interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@merge-sched-stream
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/host/client_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/client_session.h
diff --git a/remoting/host/client_session.h b/remoting/host/client_session.h
index 8bc2e0944ccd97309fcd717833bba04491634003..30551ba07708ff8580db3aa02fded8e29dabbf14 100644
--- a/remoting/host/client_session.h
+++ b/remoting/host/client_session.h
@@ -29,6 +29,7 @@
#include "remoting/protocol/input_stub.h"
#include "remoting/protocol/mouse_input_filter.h"
#include "remoting/protocol/pairing_registry.h"
+#include "remoting/protocol/video_stream.h"
#include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
namespace base {
@@ -53,6 +54,7 @@ class VideoLayout;
class ClientSession : public base::NonThreadSafe,
public protocol::HostStub,
public protocol::ConnectionToClient::EventHandler,
+ public protocol::VideoStream::Observer,
public ClientSessionControl {
public:
// Callback interface for passing events to the ChromotingHost.
@@ -144,8 +146,13 @@ class ClientSession : public base::NonThreadSafe,
// Creates a proxy for sending clipboard events to the client.
std::unique_ptr<protocol::ClipboardStub> CreateClipboardProxy();
- void OnScreenSizeChanged(const webrtc::DesktopSize& size,
- const webrtc::DesktopVector& dpi);
+ // protocol::VideoStream::Observer implementation.
+ void OnVideoSizeChanged(protocol::VideoStream* stream,
+ const webrtc::DesktopSize& size,
+ const webrtc::DesktopVector& dpi) override;
+ void OnVideoFrameSent(protocol::VideoStream* stream,
+ uint32_t frame_id,
+ int64_t input_event_timestamp) override;
EventHandler* event_handler_;
« no previous file with comments | « no previous file | remoting/host/client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698