diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-22 00:51:26 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-22 00:51:26 +0000 |
commit | dda4da3bad346484b6a4253b6c504845e8d3e67b (patch) | |
tree | 7571fc57b2dc8e19035b0331e33b20aa1115f39c /remoting/host/client_session.h | |
parent | b8591e1c80f813f3f9edd3a018396330365b07b2 (diff) | |
download | chromium_src-dda4da3bad346484b6a4253b6c504845e8d3e67b.zip chromium_src-dda4da3bad346484b6a4253b6c504845e8d3e67b.tar.gz chromium_src-dda4da3bad346484b6a4253b6c504845e8d3e67b.tar.bz2 |
Handle disconnection events properly for unauthenticated clients.
Previously when receiving disconnection event the host was stopping
screen recorder even when there are other active sessions. Obviously
this is wrong.
BUG=128643
Review URL: https://chromiumcodereview.appspot.com/10409021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138185 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/client_session.h')
-rw-r--r-- | remoting/host/client_session.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/remoting/host/client_session.h b/remoting/host/client_session.h index 084d153..e61e846 100644 --- a/remoting/host/client_session.h +++ b/remoting/host/client_session.h @@ -109,6 +109,8 @@ class ClientSession : public protocol::HostEventStub, const std::string& client_jid() { return client_jid_; } + bool is_authenticated() { return is_authenticated_; } + // Indicate that local mouse activity has been detected. This causes remote // inputs to be ignored for a short time so that the local user will always // have the upper hand in 'pointer wars'. @@ -125,6 +127,7 @@ class ClientSession : public protocol::HostEventStub, scoped_ptr<protocol::ConnectionToClient> connection_; std::string client_jid_; + bool is_authenticated_; // The host event stub to which this object delegates. This is the final // element in the input pipeline, whose components appear in order below. |