diff options
author | lambroslambrou@chromium.org <lambroslambrou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-14 17:14:45 +0000 |
---|---|---|
committer | lambroslambrou@chromium.org <lambroslambrou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-14 17:14:45 +0000 |
commit | d870150e16f9791c235ee64d00c4549c23ab29a5 (patch) | |
tree | c0362be980fb2b76df4015d3b53ad9d4918c98c3 /remoting/protocol/input_stub.h | |
parent | c2996a9124fa16f8b827ce370a840c2b3656e736 (diff) | |
download | chromium_src-d870150e16f9791c235ee64d00c4549c23ab29a5.zip chromium_src-d870150e16f9791c235ee64d00c4549c23ab29a5.tar.gz chromium_src-d870150e16f9791c235ee64d00c4549c23ab29a5.tar.bz2 |
Clear authenticated state on client disconnection.
BUG=75553
TEST=Connect client to host, disconnect then connect again (after 2 minutes).
Review URL: http://codereview.chromium.org/6684006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78046 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/input_stub.h')
-rw-r--r-- | remoting/protocol/input_stub.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/remoting/protocol/input_stub.h b/remoting/protocol/input_stub.h index 8c80d16..0bc60c3 100644 --- a/remoting/protocol/input_stub.h +++ b/remoting/protocol/input_stub.h @@ -26,11 +26,17 @@ class InputStub { virtual void InjectKeyEvent(const KeyEvent* event, Task* done) = 0; virtual void InjectMouseEvent(const MouseEvent* event, Task* done) = 0; + // TODO(lambroslambrou): Remove OnAuthenticated() and OnClosed() when stubs + // are refactored not to store authentication state. + // Called when the client has authenticated with the host to enable the // input event channel. // Before this is called, all input event will be ignored. void OnAuthenticated(); + // Called when the client is no longer connected. + void OnClosed(); + // Has the client successfully authenticated with the host? // I.e., should we be processing input events? bool authenticated(); |