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

Unified Diff: remoting/host/client_session.h

Issue 902613004: Fix ConnectionToClient to connect stubs only after authentication. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@audio_pump
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | remoting/host/client_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/client_session.h
diff --git a/remoting/host/client_session.h b/remoting/host/client_session.h
index a70fd3b5c5fb42d78216630a35557fc5a6a93a54..1994144297897e2dc2edc3db623d7238dd765ca8 100644
--- a/remoting/host/client_session.h
+++ b/remoting/host/client_session.h
@@ -141,7 +141,7 @@ class ClientSession
return connection_.get();
}
- bool is_authenticated() { return auth_input_filter_.enabled(); }
+ bool is_authenticated() { return is_authenticated_; }
const std::string* client_capabilities() const {
return client_capabilities_.get();
@@ -185,10 +185,6 @@ class ClientSession
protocol::InputFilter disable_input_filter_;
protocol::ClipboardFilter disable_clipboard_filter_;
- // Filters used to disable input & clipboard when we're not authenticated.
- protocol::InputFilter auth_input_filter_;
- protocol::ClipboardFilter auth_clipboard_filter_;
-
// Factory for weak pointers to the client clipboard stub.
// This must appear after |clipboard_echo_filter_|, so that it won't outlive
// it.
@@ -240,6 +236,9 @@ class ClientSession
// Used to manage extension functionality.
scoped_ptr<HostExtensionSessionManager> extension_manager_;
+ // Set to true if the client was authenticated successfully.
+ bool is_authenticated_;
+
// Used to store video channel pause & lossless parameters.
bool pause_video_;
bool lossless_video_encode_;
« no previous file with comments | « no previous file | remoting/host/client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698