Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Unified Diff: remoting/host/client_session.h

Issue 10409021: Handle disconnection events properly for unauthenicated clients. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: remoting/host/client_session.h
diff --git a/remoting/host/client_session.h b/remoting/host/client_session.h
index 084d153a2de2acaa64684c73dc115e6ed6375d30..e61e84604dbd5e3d6c3546fd8c0812811b20cae3 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_; }
Wez 2012/05/18 20:20:57 You can check |auth_input_filter_.get_stub()| here
Sergey Ulanov 2012/05/21 18:20:13 OnConnectionClosed() resets auth_input_filter_ and
Wez 2012/05/21 20:33:50 Hmmm, yes; the teardown logic in ChromotingHost re
Sergey Ulanov 2012/05/21 22:27:55 Added TODO.
+
// 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.

Powered by Google App Engine
This is Rietveld 408576698