| Index: remoting/protocol/connection_to_host.h
|
| diff --git a/remoting/protocol/connection_to_host.h b/remoting/protocol/connection_to_host.h
|
| index 2f661cab07de7467ea49b6d19d1d618d501a7c01..3962c3267bfff73d42b6fb98735964486d929906 100644
|
| --- a/remoting/protocol/connection_to_host.h
|
| +++ b/remoting/protocol/connection_to_host.h
|
| @@ -85,6 +85,9 @@ class ConnectionToHost : public JingleClient::Callback {
|
| // Callback for chromotocol Session.
|
| void OnSessionStateChange(Session::State state);
|
|
|
| + // Called when the host accepts the client authentication.
|
| + void OnClientAuthenticated();
|
| +
|
| private:
|
| // The message loop for the jingle thread this object works on.
|
| MessageLoop* message_loop();
|
| @@ -101,6 +104,11 @@ class ConnectionToHost : public JingleClient::Callback {
|
| void OnDisconnected();
|
| void OnServerClosed();
|
|
|
| + // Initially false, this is set to true once the client has authenticated
|
| + // properly. When this is false, many messages to the host (like input events)
|
| + // will be suppressed.
|
| + bool client_authenticated_;
|
| +
|
| JingleThread* thread_;
|
|
|
| scoped_ptr<talk_base::NetworkManager> network_manager_;
|
|
|