Index: remoting/protocol/connection_to_client.h |
diff --git a/remoting/protocol/connection_to_client.h b/remoting/protocol/connection_to_client.h |
index 2aac7283e46eee4bb64e77a7d65c6b272a83aae8..07bc64ace7f0cdbf163b009798c94600db520b26 100644 |
--- a/remoting/protocol/connection_to_client.h |
+++ b/remoting/protocol/connection_to_client.h |
@@ -9,7 +9,14 @@ |
#include "remoting/protocol/transport.h" |
+namespace webrtc { |
+class DesktopCapturer; |
+} // namespace webrtc |
+ |
namespace remoting { |
+ |
+class VideoEncoder; |
+ |
namespace protocol { |
class AudioStub; |
@@ -18,8 +25,7 @@ class ClipboardStub; |
class HostStub; |
class InputStub; |
class Session; |
-class VideoFeedbackStub; |
-class VideoStub; |
+class VideoStream; |
// This interface represents a remote viewer connection to the chromoting host. |
// It sets up all protocol channels and connects them to the stubs. |
@@ -38,6 +44,10 @@ class ConnectionToClient { |
virtual void OnConnectionChannelsConnected( |
ConnectionToClient* connection) = 0; |
+ // Called when a VideoEncoder is created. Used by ClientSession to modify |
+ // the video pipeline if necessary. |
+ virtual void OnCreateVideoEncoder(scoped_ptr<VideoEncoder>* encoder) = 0; |
+ |
// Called when the network connection is closed or failed. |
virtual void OnConnectionClosed(ConnectionToClient* connection, |
ErrorCode error) = 0; |
@@ -74,11 +84,15 @@ class ConnectionToClient { |
// received event. |
virtual void OnInputEventReceived(int64_t timestamp) = 0; |
+ // Start video stream that captures screen using the |desktop_capturer| and |
+ // sends it to the client. |
Jamie
2015/11/25 01:32:46
s/sends/send/
Sergey Ulanov
2015/11/27 22:11:34
I think "sends" is correct here. The VideoStream _
|
+ virtual scoped_ptr<VideoStream> StartVideoStream( |
+ scoped_ptr<webrtc::DesktopCapturer> desktop_capturer) = 0; |
+ |
// Get the stubs used by the host to transmit messages to the client. |
// The stubs must not be accessed before OnConnectionAuthenticated(), or |
// after OnConnectionClosed(). |
// Note that the audio stub will be nullptr if audio is not enabled. |
- virtual VideoStub* video_stub() = 0; |
virtual AudioStub* audio_stub() = 0; |
virtual ClientStub* client_stub() = 0; |
@@ -87,11 +101,6 @@ class ConnectionToClient { |
virtual void set_clipboard_stub(ClipboardStub* clipboard_stub) = 0; |
virtual void set_host_stub(HostStub* host_stub) = 0; |
virtual void set_input_stub(InputStub* input_stub) = 0; |
- |
- // Sets video feedback stub. Can be called at any time after connection is |
- // authenticated. |
- virtual void set_video_feedback_stub( |
- VideoFeedbackStub* video_feedback_stub) = 0; |
}; |
} // namespace protocol |