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

Unified Diff: remoting/protocol/host_control_dispatcher.cc

Issue 14715012: Protocol-level changes required to support PIN-less authentication. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed linter nit. Created 7 years, 7 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 | « remoting/protocol/host_control_dispatcher.h ('k') | remoting/protocol/host_stub.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.";
}
« no previous file with comments | « remoting/protocol/host_control_dispatcher.h ('k') | remoting/protocol/host_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698