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

Unified Diff: chromecast/media/audio/cast_audio_manager.h

Issue 1806313003: Pass task runners to AudioManager constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments from patch 48 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 | « no previous file | chromecast/media/audio/cast_audio_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/audio/cast_audio_manager.h
diff --git a/chromecast/media/audio/cast_audio_manager.h b/chromecast/media/audio/cast_audio_manager.h
index 97e3e3cfc78213b734333b3e18bc7f1b7fe4dcbc..572b99fe6b6fc4e155bf0c1a1bb9d47a7d319b01 100644
--- a/chromecast/media/audio/cast_audio_manager.h
+++ b/chromecast/media/audio/cast_audio_manager.h
@@ -20,9 +20,11 @@ struct MediaPipelineDeviceParams;
class CastAudioManager : public ::media::AudioManagerBase {
public:
- CastAudioManager(::media::AudioLogFactory* audio_log_factory,
- MediaPipelineBackendManager* backend_manager);
- ~CastAudioManager() override;
+ CastAudioManager(
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner,
+ scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner,
+ ::media::AudioLogFactory* audio_log_factory,
+ MediaPipelineBackendManager* backend_manager);
// AudioManager implementation.
bool HasAudioOutputDevices() override;
@@ -38,6 +40,9 @@ class CastAudioManager : public ::media::AudioManagerBase {
virtual std::unique_ptr<MediaPipelineBackend> CreateMediaPipelineBackend(
const MediaPipelineDeviceParams& params);
+ protected:
+ ~CastAudioManager() override;
+
private:
// AudioManagerBase implementation.
::media::AudioOutputStream* MakeLinearOutputStream(
« no previous file with comments | « no previous file | chromecast/media/audio/cast_audio_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698