Index: remoting/protocol/client_control_dispatcher.cc |
diff --git a/remoting/protocol/client_control_dispatcher.cc b/remoting/protocol/client_control_dispatcher.cc |
index 6830981a38ec71992b65e65c8310efefe5fcb58c..580ea28a20ed126a4b7985e48a2decd6932da6d2 100644 |
--- a/remoting/protocol/client_control_dispatcher.cc |
+++ b/remoting/protocol/client_control_dispatcher.cc |
@@ -60,6 +60,13 @@ void ClientControlDispatcher::ControlAudio(const AudioControl& audio_control) { |
writer_.Write(SerializeAndFrameMessage(message), base::Closure()); |
} |
+void ClientControlDispatcher::SetCapabilities( |
+ const Capabilities& capabilities) { |
+ ControlMessage message; |
+ message.mutable_capabilities()->CopyFrom(capabilities); |
+ writer_.Write(SerializeAndFrameMessage(message), base::Closure()); |
+} |
+ |
void ClientControlDispatcher::OnMessageReceived( |
scoped_ptr<ControlMessage> message, const base::Closure& done_task) { |
DCHECK(client_stub_); |
@@ -68,6 +75,8 @@ void ClientControlDispatcher::OnMessageReceived( |
if (message->has_clipboard_event()) { |
clipboard_stub_->InjectClipboardEvent(message->clipboard_event()); |
+ } else if (message->has_capabilities()) { |
+ client_stub_->SetCapabilities(message->capabilities()); |
} else if (message->has_cursor_shape()) { |
client_stub_->SetCursorShape(message->cursor_shape()); |
} else { |