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); |
}; |