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

Side by Side Diff: media/audio/cras/audio_manager_cras.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 unified diff | Download patch
« no previous file with comments | « media/audio/audio_output_proxy_unittest.cc ('k') | media/audio/cras/audio_manager_cras.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ 5 #ifndef MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_
6 #define MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ 6 #define MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_
7 7
8 #include <cras_types.h> 8 #include <cras_types.h>
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "media/audio/audio_manager_base.h" 15 #include "media/audio/audio_manager_base.h"
16 16
17 namespace media { 17 namespace media {
18 18
19 class MEDIA_EXPORT AudioManagerCras : public AudioManagerBase { 19 class MEDIA_EXPORT AudioManagerCras : public AudioManagerBase {
20 public: 20 public:
21 AudioManagerCras(AudioLogFactory* audio_log_factory); 21 AudioManagerCras(
22 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
23 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner,
24 AudioLogFactory* audio_log_factory);
22 25
23 // AudioManager implementation. 26 // AudioManager implementation.
24 bool HasAudioOutputDevices() override; 27 bool HasAudioOutputDevices() override;
25 bool HasAudioInputDevices() override; 28 bool HasAudioInputDevices() override;
26 void ShowAudioInputSettings() override; 29 void ShowAudioInputSettings() override;
27 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; 30 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override;
28 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; 31 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override;
29 AudioParameters GetInputStreamParameters( 32 AudioParameters GetInputStreamParameters(
30 const std::string& device_id) override; 33 const std::string& device_id) override;
31 34
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 69
67 const char* beamforming_on_device_id_; 70 const char* beamforming_on_device_id_;
68 const char* beamforming_off_device_id_; 71 const char* beamforming_off_device_id_;
69 72
70 DISALLOW_COPY_AND_ASSIGN(AudioManagerCras); 73 DISALLOW_COPY_AND_ASSIGN(AudioManagerCras);
71 }; 74 };
72 75
73 } // namespace media 76 } // namespace media
74 77
75 #endif // MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ 78 #endif // MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_
OLDNEW
« no previous file with comments | « media/audio/audio_output_proxy_unittest.cc ('k') | media/audio/cras/audio_manager_cras.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698