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

Side by Side 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: speculative hack to fix test timeouts 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_H_ 5 #ifndef CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_H_
6 #define CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_H_ 6 #define CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "media/audio/audio_manager_base.h" 9 #include "media/audio/audio_manager_base.h"
10 10
11 namespace chromecast { 11 namespace chromecast {
12 12
13 class TaskRunnerImpl; 13 class TaskRunnerImpl;
14 14
15 namespace media { 15 namespace media {
16 16
17 class MediaPipelineBackend; 17 class MediaPipelineBackend;
18 struct MediaPipelineDeviceParams; 18 struct MediaPipelineDeviceParams;
19 19
20 class CastAudioManager : public ::media::AudioManagerBase { 20 class CastAudioManager : public ::media::AudioManagerBase {
21 public: 21 public:
22 explicit CastAudioManager(::media::AudioLogFactory* audio_log_factory); 22 CastAudioManager(
23 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
24 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner,
25 ::media::AudioLogFactory* audio_log_factory);
23 ~CastAudioManager() override; 26 ~CastAudioManager() override;
24 27
25 // AudioManager implementation. 28 // AudioManager implementation.
26 bool HasAudioOutputDevices() override; 29 bool HasAudioOutputDevices() override;
27 bool HasAudioInputDevices() override; 30 bool HasAudioInputDevices() override;
28 void ShowAudioInputSettings() override; 31 void ShowAudioInputSettings() override;
29 void GetAudioInputDeviceNames( 32 void GetAudioInputDeviceNames(
30 ::media::AudioDeviceNames* device_names) override; 33 ::media::AudioDeviceNames* device_names) override;
31 ::media::AudioParameters GetInputStreamParameters( 34 ::media::AudioParameters GetInputStreamParameters(
32 const std::string& device_id) override; 35 const std::string& device_id) override;
(...skipping 20 matching lines...) Expand all
53 const std::string& output_device_id, 56 const std::string& output_device_id,
54 const ::media::AudioParameters& input_params) override; 57 const ::media::AudioParameters& input_params) override;
55 58
56 DISALLOW_COPY_AND_ASSIGN(CastAudioManager); 59 DISALLOW_COPY_AND_ASSIGN(CastAudioManager);
57 }; 60 };
58 61
59 } // namespace media 62 } // namespace media
60 } // namespace chromecast 63 } // namespace chromecast
61 64
62 #endif // CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_H_ 65 #endif // CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chromecast/media/audio/cast_audio_manager.cc » ('j') | media/audio/audio_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698