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

Unified Diff: remoting/protocol/connection_to_client.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
Index: remoting/protocol/connection_to_client.h
diff --git a/remoting/protocol/connection_to_client.h b/remoting/protocol/connection_to_client.h
index 024f4d6393a147c628592491011ffefa15769328..644464d67fb1cce09bce01d6d3c527aac27611d5 100644
--- a/remoting/protocol/connection_to_client.h
+++ b/remoting/protocol/connection_to_client.h
@@ -31,7 +31,8 @@ class VideoStub;
// host. It sets up all protocol channels and connects them to the
// stubs.
class ConnectionToClient : public base::NonThreadSafe,
- public Session::EventHandler {
+ public Session::EventHandler,
+ public ChannelDispatcherBase::EventHandler {
public:
class EventHandler {
public:
@@ -105,10 +106,12 @@ class ConnectionToClient : public base::NonThreadSafe,
void OnSessionRouteChange(const std::string& channel_name,
const TransportRoute& route) override;
- private:
- // Callback for channel initialization.
- void OnChannelInitialized(bool successful);
+ // ChannelDispatcherBase::EventHandler interface.
+ void OnChannelInitialized(ChannelDispatcherBase* channel_dispatcher) override;
+ void OnChannelError(ChannelDispatcherBase* channel_dispatcher,
+ ErrorCode error) override;
+ private:
void NotifyIfChannelsReady();
void Close(ErrorCode error);

Powered by Google App Engine
This is Rietveld 408576698