summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/client_stub.h
diff options
context:
space:
mode:
authorlambroslambrou@chromium.org <lambroslambrou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-14 17:14:45 +0000
committerlambroslambrou@chromium.org <lambroslambrou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-14 17:14:45 +0000
commitd870150e16f9791c235ee64d00c4549c23ab29a5 (patch)
treec0362be980fb2b76df4015d3b53ad9d4918c98c3 /remoting/protocol/client_stub.h
parentc2996a9124fa16f8b827ce370a840c2b3656e736 (diff)
downloadchromium_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/client_stub.h')
-rw-r--r--remoting/protocol/client_stub.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/remoting/protocol/client_stub.h b/remoting/protocol/client_stub.h
index a2bd565..d6550ec 100644
--- a/remoting/protocol/client_stub.h
+++ b/remoting/protocol/client_stub.h
@@ -30,12 +30,18 @@ class ClientStub {
virtual void BeginSessionResponse(const LocalLoginStatus* msg,
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
// host->client control channel.
// Before this is called, only a limited set of control messages will be
// processed.
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 control events?
bool authenticated();