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

Unified Diff: remoting/protocol/client_event_dispatcher.cc

Issue 8587053: Remove event_channel() and control_channel() from Session interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 1 month 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/client_event_dispatcher.h ('k') | remoting/protocol/connection_to_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/client_event_dispatcher.cc
diff --git a/remoting/protocol/client_event_dispatcher.cc b/remoting/protocol/client_event_dispatcher.cc
index 60c5d43e9383b43fd23df5f54ee9d0ae77a52858..c0da8373f2cdcf2e8cf08aa8149e35b3edcbd1cf 100644
--- a/remoting/protocol/client_event_dispatcher.cc
+++ b/remoting/protocol/client_event_dispatcher.cc
@@ -6,28 +6,28 @@
#include "base/message_loop_proxy.h"
#include "base/time.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/buffered_socket_writer.h"
-#include "remoting/protocol/session.h"
#include "remoting/protocol/util.h"
namespace remoting {
namespace protocol {
ClientEventDispatcher::ClientEventDispatcher()
- : writer_(new BufferedSocketWriter(base::MessageLoopProxy::current())) {
+ : ChannelDispatcherBase(kEventChannelName),
+ writer_(new BufferedSocketWriter(base::MessageLoopProxy::current())) {
}
ClientEventDispatcher::~ClientEventDispatcher() {
writer_->Close();
}
-void ClientEventDispatcher::Init(Session* session) {
- DCHECK(session);
-
+void ClientEventDispatcher::OnInitialized() {
// TODO(garykac): Set write failed callback.
- writer_->Init(session->event_channel(),
+ writer_->Init(channel(),
BufferedSocketWriter::WriteFailedCallback());
}
« no previous file with comments | « remoting/protocol/client_event_dispatcher.h ('k') | remoting/protocol/connection_to_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698