Chromium Code Reviews| Index: remoting/protocol/connection_to_host.h |
| diff --git a/remoting/protocol/connection_to_host.h b/remoting/protocol/connection_to_host.h |
| index 4eb7d15251bd1fb7eec757f06130597658f94cf2..93526934d5a593911e6d28758fd40a53e0a56549 100644 |
| --- a/remoting/protocol/connection_to_host.h |
| +++ b/remoting/protocol/connection_to_host.h |
| @@ -5,6 +5,7 @@ |
| #ifndef REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ |
| #define REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ |
| +#include <set> |
| #include <string> |
| #include "base/callback_forward.h" |
| @@ -64,6 +65,12 @@ class ConnectionToHost : public SignalStrategy::Listener, |
| // Called when state of the connection changes. |
| virtual void OnConnectionState(State state, ErrorCode error) = 0; |
| + |
| + // Called when ready state of the connection changes. When |ready| |
| + // is set to false some data sent by the peers may be |
| + // delayed. This is used byt the UI to indicate when connection is |
|
Wez
2012/07/17 01:47:50
typo: byt
Wez
2012/07/17 01:47:50
suggest: This is used to indicate in the UI that t
Sergey Ulanov
2012/07/18 00:52:07
Done.
Sergey Ulanov
2012/07/18 00:52:07
Done.
|
| + // temporarily broken. |
| + virtual void OnConnectionReady(bool ready) = 0; |
| }; |
| ConnectionToHost(bool allow_nat_traversal); |
| @@ -104,6 +111,8 @@ class ConnectionToHost : public SignalStrategy::Listener, |
| virtual void OnSessionStateChange(Session::State state) OVERRIDE; |
| virtual void OnSessionRouteChange(const std::string& channel_name, |
| const TransportRoute& route) OVERRIDE; |
| + virtual void OnSessionChannelReady(const std::string& channel_name, |
| + bool ready) OVERRIDE; |
| // Return the current state of ConnectionToHost. |
| State state() const; |
| @@ -150,6 +159,9 @@ class ConnectionToHost : public SignalStrategy::Listener, |
| State state_; |
| ErrorCode error_; |
| + // List of channels that are currenly in not-ready state. |
|
Wez
2012/07/17 01:47:50
typo: currenly
Wez
2012/07/17 01:47:50
nit: ... that are not currently ready.
Sergey Ulanov
2012/07/18 00:52:07
Done.
Sergey Ulanov
2012/07/18 00:52:07
Done.
|
| + std::set<std::string> not_ready_channels_; |
| + |
| private: |
| DISALLOW_COPY_AND_ASSIGN(ConnectionToHost); |
| }; |