Chromium Code Reviews| Index: remoting/protocol/connection_to_host.cc |
| diff --git a/remoting/protocol/connection_to_host.cc b/remoting/protocol/connection_to_host.cc |
| index 5794c50216f15daff92d3da49b1890f40c3e2612..16893dd19c5d23d2b2906c67e0c53268674bb0d0 100644 |
| --- a/remoting/protocol/connection_to_host.cc |
| +++ b/remoting/protocol/connection_to_host.cc |
| @@ -209,6 +209,12 @@ void ConnectionToHost::OnSessionRouteChange(const std::string& channel_name, |
| const TransportRoute& route) { |
| } |
| +void ConnectionToHost::OnSessionInactive(const std::string& channel_name, |
| + bool inactive) { |
| + if (channel_name == kVideoChannelName) |
| + event_callback_->OnConnectionInactive(inactive); |
|
Wez
2012/07/16 18:51:23
You're basing the connection's "active" state pure
Sergey Ulanov
2012/07/17 01:17:17
Changed it to set ready=false when any of the chan
|
| +} |
| + |
| ConnectionToHost::State ConnectionToHost::state() const { |
| return state_; |
| } |