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

Unified Diff: remoting/protocol/webrtc_connection_to_host.h

Issue 1580823003: Implement client-side video stream support for WebRTC-based protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@packet_options_rem
Patch Set: Created 4 years, 11 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/protocol/webrtc_connection_to_client.cc ('k') | remoting/protocol/webrtc_connection_to_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/webrtc_connection_to_host.h
diff --git a/remoting/protocol/webrtc_connection_to_host.h b/remoting/protocol/webrtc_connection_to_host.h
index 030adcc58885388d51f34e8936ce68005e63472d..755e4ce958af4a62b16c3ebe1ee2713fb397245e 100644
--- a/remoting/protocol/webrtc_connection_to_host.h
+++ b/remoting/protocol/webrtc_connection_to_host.h
@@ -23,6 +23,7 @@ namespace protocol {
class ClientControlDispatcher;
class ClientEventDispatcher;
class SessionConfig;
+class WebrtcVideoRendererAdapter;
class WebrtcConnectionToHost : public ConnectionToHost,
public Session::EventHandler,
@@ -54,6 +55,10 @@ class WebrtcConnectionToHost : public ConnectionToHost,
void OnWebrtcTransportConnecting() override;
void OnWebrtcTransportConnected() override;
void OnWebrtcTransportError(ErrorCode error) override;
+ void OnWebrtcTransportMediaStreamAdded(
+ scoped_refptr<webrtc::MediaStreamInterface> stream) override;
+ void OnWebrtcTransportMediaStreamRemoved(
+ scoped_refptr<webrtc::MediaStreamInterface> stream) override;
// ChannelDispatcherBase::EventHandler interface.
void OnChannelInitialized(ChannelDispatcherBase* channel_dispatcher) override;
@@ -70,6 +75,7 @@ class WebrtcConnectionToHost : public ConnectionToHost,
// Stub for incoming messages.
ClientStub* client_stub_ = nullptr;
+ VideoRenderer* video_renderer_ = nullptr;
ClipboardStub* clipboard_stub_ = nullptr;
scoped_ptr<Session> session_;
@@ -80,6 +86,8 @@ class WebrtcConnectionToHost : public ConnectionToHost,
ClipboardFilter clipboard_forwarder_;
InputFilter event_forwarder_;
+ scoped_ptr<WebrtcVideoRendererAdapter> video_adapter_;
+
// Internal state of the connection.
State state_ = INITIALIZING;
ErrorCode error_ = OK;
« no previous file with comments | « remoting/protocol/webrtc_connection_to_client.cc ('k') | remoting/protocol/webrtc_connection_to_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698