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

Unified Diff: remoting/protocol/host_control_dispatcher.h

Issue 14715012: Protocol-level changes required to support PIN-less authentication. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: remoting/protocol/host_control_dispatcher.h
diff --git a/remoting/protocol/host_control_dispatcher.h b/remoting/protocol/host_control_dispatcher.h
index ff0fc34ac40c5023e9a6037f71a512e422d52e95..02c81dc3a4f414231c6af07ce35f4469d5470958 100644
--- a/remoting/protocol/host_control_dispatcher.h
+++ b/remoting/protocol/host_control_dispatcher.h
@@ -5,7 +5,7 @@
#ifndef REMOTING_PROTOCOL_HOST_CONTROL_DISPATCHER_H_
#define REMOTING_PROTOCOL_HOST_CONTROL_DISPATCHER_H_
-#include "base/memory/ref_counted.h"
+#include "base/memory/weak_ptr.h"
#include "remoting/protocol/buffered_socket_writer.h"
#include "remoting/protocol/channel_dispatcher_base.h"
#include "remoting/protocol/client_stub.h"
@@ -22,6 +22,7 @@ namespace protocol {
class ControlMessage;
class HostStub;
+class PairingReply;
class Session;
// HostControlDispatcher dispatches incoming messages on the control
@@ -59,6 +60,7 @@ class HostControlDispatcher : public ChannelDispatcherBase,
private:
void OnMessageReceived(scoped_ptr<ControlMessage> message,
const base::Closure& done_task);
+ void OnPairingReply(const PairingReply& pairing_reply);
ClipboardStub* clipboard_stub_;
HostStub* host_stub_;
@@ -66,6 +68,8 @@ class HostControlDispatcher : public ChannelDispatcherBase,
ProtobufMessageReader<ControlMessage> reader_;
BufferedSocketWriter writer_;
+ base::WeakPtrFactory<HostControlDispatcher> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(HostControlDispatcher);
};

Powered by Google App Engine
This is Rietveld 408576698