summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/host_event_dispatcher.cc
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-22 00:07:13 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-22 00:07:13 +0000
commit2e8b52cb6b93877a77557fa519ddbceec7deab6e (patch)
tree23ad90684e62f9139a7859a2c8a935284bad33c6 /remoting/protocol/host_event_dispatcher.cc
parentd1850b19dccf7be8310d031b956f27b4b2a71e9d (diff)
downloadchromium_src-2e8b52cb6b93877a77557fa519ddbceec7deab6e.zip
chromium_src-2e8b52cb6b93877a77557fa519ddbceec7deab6e.tar.gz
chromium_src-2e8b52cb6b93877a77557fa519ddbceec7deab6e.tar.bz2
Remove event_channel() and control_channel() from Session interface.
Now all channels are created using CreateStreamChannel() as they should be! Review URL: http://codereview.chromium.org/8587053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111045 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/host_event_dispatcher.cc')
-rw-r--r--remoting/protocol/host_event_dispatcher.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/remoting/protocol/host_event_dispatcher.cc b/remoting/protocol/host_event_dispatcher.cc
index 9234e8e..34fba3f 100644
--- a/remoting/protocol/host_event_dispatcher.cc
+++ b/remoting/protocol/host_event_dispatcher.cc
@@ -4,24 +4,25 @@
#include "remoting/protocol/host_event_dispatcher.h"
+#include "net/socket/stream_socket.h"
+#include "remoting/base/constants.h"
#include "remoting/proto/event.pb.h"
#include "remoting/proto/internal.pb.h"
#include "remoting/protocol/input_stub.h"
-#include "remoting/protocol/session.h"
namespace remoting {
namespace protocol {
HostEventDispatcher::HostEventDispatcher()
- : input_stub_(NULL) {
+ : ChannelDispatcherBase(kEventChannelName),
+ input_stub_(NULL) {
}
HostEventDispatcher::~HostEventDispatcher() {
}
-void HostEventDispatcher::Init(Session* session) {
- DCHECK(session);
- reader_.Init(session->event_channel(), base::Bind(
+void HostEventDispatcher::OnInitialized() {
+ reader_.Init(channel(), base::Bind(
&HostEventDispatcher::OnMessageReceived, base::Unretained(this)));
}