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

Unified Diff: remoting/protocol/webrtc_connection_to_client.h

Issue 1846893002: Interface with webrtc through encoded frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed sergey comment Created 4 years, 8 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/video_frame_pump_unittest.cc ('k') | remoting/protocol/webrtc_connection_to_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/webrtc_connection_to_client.h
diff --git a/remoting/protocol/webrtc_connection_to_client.h b/remoting/protocol/webrtc_connection_to_client.h
index d5ce65f269eb5b98245b4421c27f0c7840c60611..31495cc3342bce0d5d61e24d30955c688b08fdb7 100644
--- a/remoting/protocol/webrtc_connection_to_client.h
+++ b/remoting/protocol/webrtc_connection_to_client.h
@@ -31,7 +31,8 @@ class WebrtcConnectionToClient : public ConnectionToClient,
public:
WebrtcConnectionToClient(
std::unique_ptr<Session> session,
- scoped_refptr<protocol::TransportContext> transport_context);
+ scoped_refptr<protocol::TransportContext> transport_context,
+ scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner);
~WebrtcConnectionToClient() override;
// ConnectionToClient interface.
@@ -69,13 +70,14 @@ class WebrtcConnectionToClient : public ConnectionToClient,
// Event handler for handling events sent from this object.
ConnectionToClient::EventHandler* event_handler_ = nullptr;
- WebrtcTransport transport_;
+ std::unique_ptr<WebrtcTransport> transport_;
std::unique_ptr<Session> session_;
+ scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner_;
+
std::unique_ptr<HostControlDispatcher> control_dispatcher_;
std::unique_ptr<HostEventDispatcher> event_dispatcher_;
-
base::WeakPtrFactory<WebrtcConnectionToClient> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(WebrtcConnectionToClient);
« no previous file with comments | « remoting/protocol/video_frame_pump_unittest.cc ('k') | remoting/protocol/webrtc_connection_to_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698