| Index: remoting/protocol/host_control_dispatcher.cc
|
| diff --git a/remoting/protocol/host_control_dispatcher.cc b/remoting/protocol/host_control_dispatcher.cc
|
| index a213ac6eeb3090c2cb5c29982420b425bb41fd6d..0c44cc2ee0b10564225eb80bd3112afd6f7bbf45 100644
|
| --- a/remoting/protocol/host_control_dispatcher.cc
|
| +++ b/remoting/protocol/host_control_dispatcher.cc
|
| @@ -39,6 +39,13 @@ void HostControlDispatcher::SetCapabilities(
|
| writer_.Write(SerializeAndFrameMessage(message), base::Closure());
|
| }
|
|
|
| +void HostControlDispatcher::SetPairingResponse(
|
| + const PairingResponse& pairing_response) {
|
| + ControlMessage message;
|
| + message.mutable_pairing_response()->CopyFrom(pairing_response);
|
| + writer_.Write(SerializeAndFrameMessage(message), base::Closure());
|
| +}
|
| +
|
| void HostControlDispatcher::InjectClipboardEvent(const ClipboardEvent& event) {
|
| ControlMessage message;
|
| message.mutable_clipboard_event()->CopyFrom(event);
|
| @@ -69,6 +76,8 @@ void HostControlDispatcher::OnMessageReceived(
|
| host_stub_->ControlAudio(message->audio_control());
|
| } else if (message->has_capabilities()) {
|
| host_stub_->SetCapabilities(message->capabilities());
|
| + } else if (message->has_pairing_request()) {
|
| + host_stub_->RequestPairing(message->pairing_request());
|
| } else {
|
| LOG(WARNING) << "Unknown control message received.";
|
| }
|
|
|