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

Unified Diff: remoting/protocol/ice_connection_to_client.h

Issue 2254673002: Remove dependency on AudioStub in ConnectionToClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win Created 4 years, 3 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/fake_connection_to_client.cc ('k') | remoting/protocol/ice_connection_to_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/ice_connection_to_client.h
diff --git a/remoting/protocol/ice_connection_to_client.h b/remoting/protocol/ice_connection_to_client.h
index d2932f5dcbc715a8d53f9dc16cef80d09d05a658..16d01e12e9e4b4040ab6ef1dd2c302b414442c52 100644
--- a/remoting/protocol/ice_connection_to_client.h
+++ b/remoting/protocol/ice_connection_to_client.h
@@ -38,7 +38,8 @@ class IceConnectionToClient : public ConnectionToClient,
IceConnectionToClient(
std::unique_ptr<Session> session,
scoped_refptr<TransportContext> transport_context,
- scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner);
+ scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner,
+ scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner);
~IceConnectionToClient() override;
// ConnectionToClient interface.
@@ -49,7 +50,8 @@ class IceConnectionToClient : public ConnectionToClient,
void OnInputEventReceived(int64_t timestamp) override;
std::unique_ptr<VideoStream> StartVideoStream(
std::unique_ptr<webrtc::DesktopCapturer> desktop_capturer) override;
- AudioStub* audio_stub() override;
+ std::unique_ptr<AudioStream> StartAudioStream(
+ std::unique_ptr<AudioSource> audio_source) override;
ClientStub* client_stub() override;
void set_clipboard_stub(ClipboardStub* clipboard_stub) override;
void set_host_stub(HostStub* host_stub) override;
@@ -80,6 +82,7 @@ class IceConnectionToClient : public ConnectionToClient,
std::unique_ptr<Session> session_;
scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner_;
+ scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner_;
IceTransport transport_;
« no previous file with comments | « remoting/protocol/fake_connection_to_client.cc ('k') | remoting/protocol/ice_connection_to_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698