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

Unified Diff: remoting/protocol/connection_to_client.h

Issue 10831223: Use ClipboardFilter in ClientSession auth & disable-input blocking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ClientSession unit tests to build. Created 8 years, 4 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/protocol/connection_to_client.h
diff --git a/remoting/protocol/connection_to_client.h b/remoting/protocol/connection_to_client.h
index 67cfe3b17d90be497f3bcc0fe32dd55a6909d167..76cecc4f09a2703c54dfd5e269695f56bd19430b 100644
--- a/remoting/protocol/connection_to_client.h
+++ b/remoting/protocol/connection_to_client.h
@@ -82,21 +82,20 @@ class ConnectionToClient : public base::NonThreadSafe,
// will be called.
virtual void UpdateSequenceNumber(int64 sequence_number);
- // Send encoded update stream data to the viewer.
+ // Get the stubs used by the host to transmit messages to the client.
+ // Note that the audio stub will be NULL if audio is not enabled.
virtual VideoStub* video_stub();
-
- // Send audio stream data to the viewer.
- // Returns NULL if audio is not enabled.
virtual AudioStub* audio_stub();
-
- // Send control data to the viewer/client.
virtual ClientStub* client_stub();
- // Stubs for receiving data from the client.
- // These three setters should be called before Init().
+ // 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.
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.
virtual void OnSessionStateChange(Session::State state) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698