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

Unified Diff: remoting/protocol/connection_to_client.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 | « remoting/host/client_session_unittest.cc ('k') | remoting/protocol/connection_to_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/connection_to_client.h
diff --git a/remoting/protocol/connection_to_client.h b/remoting/protocol/connection_to_client.h
index 11f4a3404a350792ec0f401fa5ddf0d55bb79a09..2cdd60be0c7e4f96d0e4c37a784061be2878a687 100644
--- a/remoting/protocol/connection_to_client.h
+++ b/remoting/protocol/connection_to_client.h
@@ -92,14 +92,11 @@ class ConnectionToClient : public base::NonThreadSafe,
virtual AudioStub* audio_stub();
virtual ClientStub* client_stub();
- // Set/get the stubs which will handle messages we receive from the client.
- // All stubs MUST be set before the session's channels become connected.
+ // Set the stubs which will handle messages we receive from the client. These
+ // must be called in EventHandler::OnConnectionAuthenticated().
virtual void set_clipboard_stub(ClipboardStub* clipboard_stub);
- virtual ClipboardStub* clipboard_stub();
virtual void set_host_stub(HostStub* host_stub);
- virtual HostStub* host_stub();
virtual void set_input_stub(InputStub* input_stub);
- virtual InputStub* input_stub();
// Session::EventHandler interface.
void OnSessionStateChange(Session::State state) override;
@@ -122,11 +119,6 @@ class ConnectionToClient : public base::NonThreadSafe,
// Event handler for handling events sent from this object.
EventHandler* handler_;
- // Stubs that are called for incoming messages.
- ClipboardStub* clipboard_stub_;
- HostStub* host_stub_;
- InputStub* input_stub_;
-
// The libjingle channel used to send and receive data from the remote client.
scoped_ptr<Session> session_;
« no previous file with comments | « remoting/host/client_session_unittest.cc ('k') | remoting/protocol/connection_to_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698