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

Unified Diff: remoting/protocol/ice_connection_to_host.h

Issue 2384063004: Move audio decoding to protocol layer (Closed)
Patch Set: Created 4 years, 2 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/ice_connection_to_host.h
diff --git a/remoting/protocol/ice_connection_to_host.h b/remoting/protocol/ice_connection_to_host.h
index fea50882c9008a5eff9e07ea994680b4d48b5190..36320dccb4aa9a9bdbf32f30361b7675f1fdb464 100644
--- a/remoting/protocol/ice_connection_to_host.h
+++ b/remoting/protocol/ice_connection_to_host.h
@@ -27,6 +27,7 @@
namespace remoting {
namespace protocol {
+class AudioDecodeScheduler;
class AudioReader;
class ClientControlDispatcher;
class ClientEventDispatcher;
@@ -45,7 +46,9 @@ class IceConnectionToHost : public ConnectionToHost,
void set_client_stub(ClientStub* client_stub) override;
void set_clipboard_stub(ClipboardStub* clipboard_stub) override;
void set_video_renderer(VideoRenderer* video_renderer) override;
- void set_audio_stub(AudioStub* audio_stub) override;
+ void InitializeAudio(
+ scoped_refptr<base::SingleThreadTaskRunner> audio_decode_task_runner,
+ base::WeakPtr<AudioStub> audio_stub) override;
void Connect(std::unique_ptr<Session> session,
scoped_refptr<TransportContext> transport_context,
HostEventCallback* event_callback) override;
@@ -84,7 +87,8 @@ class IceConnectionToHost : public ConnectionToHost,
ClientStub* client_stub_ = nullptr;
ClipboardStub* clipboard_stub_ = nullptr;
VideoRenderer* video_renderer_ = nullptr;
- AudioStub* audio_stub_ = nullptr;
+
+ std::unique_ptr<AudioDecodeScheduler> audio_decode_scheduler_;
std::unique_ptr<Session> session_;
std::unique_ptr<IceTransport> transport_;

Powered by Google App Engine
This is Rietveld 408576698