summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/connection_to_client.h
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/protocol/connection_to_client.h')
-rw-r--r--remoting/protocol/connection_to_client.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/remoting/protocol/connection_to_client.h b/remoting/protocol/connection_to_client.h
index b7aa052..d2721f3 100644
--- a/remoting/protocol/connection_to_client.h
+++ b/remoting/protocol/connection_to_client.h
@@ -72,9 +72,8 @@ class ConnectionToClient :
// Return pointer to ClientStub.
virtual ClientStub* client_stub();
- protected:
- // Protected constructor used by unit test.
- ConnectionToClient();
+ // Called when the host accepts the client authentication.
+ void OnClientAuthenticated();
private:
// Callback for protocol Session.
@@ -85,6 +84,11 @@ class ConnectionToClient :
void OnClosed();
+ // Initially false, this is set to true once the client has authenticated
+ // properly. When this is false, many client messages (like input events)
+ // will be ignored.
+ bool client_authenticated_;
+
// The libjingle channel used to send and receive data from the remote client.
scoped_refptr<Session> session_;