| Index: remoting/protocol/connection_to_host.cc
|
| diff --git a/remoting/protocol/connection_to_host.cc b/remoting/protocol/connection_to_host.cc
|
| index 27d2da1cd3fa7784e90cdacb5f3f990cb50c3b74..a2be23abb53f0721a22b5878cd7dcf6f16f67efc 100644
|
| --- a/remoting/protocol/connection_to_host.cc
|
| +++ b/remoting/protocol/connection_to_host.cc
|
| @@ -22,7 +22,8 @@ namespace remoting {
|
| namespace protocol {
|
|
|
| ConnectionToHost::ConnectionToHost(JingleThread* thread)
|
| - : thread_(thread),
|
| + : client_authenticated_(false),
|
| + thread_(thread),
|
| event_callback_(NULL),
|
| dispatcher_(new ClientMessageDispatcher()) {
|
| }
|
| @@ -196,5 +197,17 @@ void ConnectionToHost::OnSessionStateChange(
|
| }
|
| }
|
|
|
| +void ConnectionToHost::SetClientAuthenticated(bool auth) {
|
| + client_authenticated_ = auth;
|
| +
|
| + // Enable/disable each of the channels.
|
| + if (input_stub_.get())
|
| + input_stub_->SetEnabled(auth);
|
| + if (host_stub_.get())
|
| + host_stub_->SetEnabled(auth);
|
| + if (client_stub_)
|
| + client_stub_->SetEnabled(auth);
|
| +}
|
| +
|
| } // namespace protocol
|
| } // namespace remoting
|
|
|