summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/host_control_dispatcher.cc
diff options
context:
space:
mode:
authorwez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-03 01:28:55 +0000
committerwez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-03 01:28:55 +0000
commit50d71c7ff10191a29a873e6a96919a00fb96229e (patch)
treedf21467311c3052f480a5a4cb4ea7c86a815d4d0 /remoting/protocol/host_control_dispatcher.cc
parentd1c1208befec51b8dc0cbc17ab4372273d94c13b (diff)
downloadchromium_src-50d71c7ff10191a29a873e6a96919a00fb96229e.zip
chromium_src-50d71c7ff10191a29a873e6a96919a00fb96229e.tar.gz
chromium_src-50d71c7ff10191a29a873e6a96919a00fb96229e.tar.bz2
Add a message to allow clients to control the video channel.
Currently only enabling/disabling of video updates is controllable, which will be used to allow clients to suspend updates while their tab is not visible. This will be manually testable once the client is updated to hook visibility notifications to send pause/resume messages. BUG=107285 Review URL: http://codereview.chromium.org/10285005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135071 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/host_control_dispatcher.cc')
-rw-r--r--remoting/protocol/host_control_dispatcher.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/remoting/protocol/host_control_dispatcher.cc b/remoting/protocol/host_control_dispatcher.cc
index ec7d4a6..1932cac 100644
--- a/remoting/protocol/host_control_dispatcher.cc
+++ b/remoting/protocol/host_control_dispatcher.cc
@@ -51,6 +51,8 @@ void HostControlDispatcher::OnMessageReceived(
clipboard_stub_->InjectClipboardEvent(message->clipboard_event());
} else if (message->has_client_dimensions()) {
host_stub_->NotifyClientDimensions(message->client_dimensions());
+ } else if (message->has_video_control()) {
+ host_stub_->ControlVideo(message->video_control());
} else {
LOG(WARNING) << "Unknown control message received.";
}