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

Unified Diff: remoting/protocol/connection_to_host.h

Issue 841773005: Cleanup channel dispatchers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/connection_to_client.cc ('k') | remoting/protocol/connection_to_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/connection_to_host.h
diff --git a/remoting/protocol/connection_to_host.h b/remoting/protocol/connection_to_host.h
index 7bc648a45acc02a676a7a4d4176bd3a1822e360c..605bea38ac14d638531f0acdd322970e1828922d 100644
--- a/remoting/protocol/connection_to_host.h
+++ b/remoting/protocol/connection_to_host.h
@@ -13,6 +13,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/threading/non_thread_safe.h"
#include "remoting/proto/internal.pb.h"
+#include "remoting/protocol/channel_dispatcher_base.h"
#include "remoting/protocol/clipboard_filter.h"
#include "remoting/protocol/errors.h"
#include "remoting/protocol/input_filter.h"
@@ -47,6 +48,7 @@ class VideoStub;
class ConnectionToHost : public SignalStrategy::Listener,
public SessionManager::Listener,
public Session::EventHandler,
+ public ChannelDispatcherBase::EventHandler,
public base::NonThreadSafe {
public:
// The UI implementations maintain corresponding definitions of this
@@ -133,6 +135,11 @@ class ConnectionToHost : public SignalStrategy::Listener,
void OnSessionRouteChange(const std::string& channel_name,
const TransportRoute& route) override;
+ // ChannelDispatcherBase::EventHandler interface.
+ void OnChannelInitialized(ChannelDispatcherBase* channel_dispatcher) override;
+ void OnChannelError(ChannelDispatcherBase* channel_dispatcher,
+ ErrorCode error) override;
+
// MonitoredVideoStub::EventHandler interface.
virtual void OnVideoChannelStatus(bool active);
@@ -140,9 +147,6 @@ class ConnectionToHost : public SignalStrategy::Listener,
State state() const;
private:
- // Callbacks for channel initialization
- void OnChannelInitialized(bool successful);
-
void NotifyIfChannelsReady();
void CloseOnError(ErrorCode error);
« no previous file with comments | « remoting/protocol/connection_to_client.cc ('k') | remoting/protocol/connection_to_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698