Index: remoting/protocol/client_control_dispatcher.cc |
diff --git a/remoting/protocol/client_control_dispatcher.cc b/remoting/protocol/client_control_dispatcher.cc |
index 580ea28a20ed126a4b7985e48a2decd6932da6d2..b261380829b0ced0de75a7664a343541aba3d3e5 100644 |
--- a/remoting/protocol/client_control_dispatcher.cc |
+++ b/remoting/protocol/client_control_dispatcher.cc |
@@ -67,6 +67,13 @@ void ClientControlDispatcher::SetCapabilities( |
writer_.Write(SerializeAndFrameMessage(message), base::Closure()); |
} |
+void ClientControlDispatcher::RequestPairing( |
+ const PairingRequest& pairing_request) { |
+ ControlMessage message; |
+ message.mutable_pairing_request()->CopyFrom(pairing_request); |
+ writer_.Write(SerializeAndFrameMessage(message), base::Closure()); |
+} |
+ |
void ClientControlDispatcher::OnMessageReceived( |
scoped_ptr<ControlMessage> message, const base::Closure& done_task) { |
DCHECK(client_stub_); |
@@ -79,6 +86,8 @@ void ClientControlDispatcher::OnMessageReceived( |
client_stub_->SetCapabilities(message->capabilities()); |
} else if (message->has_cursor_shape()) { |
client_stub_->SetCursorShape(message->cursor_shape()); |
+ } else if (message->has_pairing_response()) { |
+ client_stub_->SetPairingResponse(message->pairing_response()); |
} else { |
LOG(WARNING) << "Unknown control message received."; |
} |