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

Side by Side Diff: media/audio/audio_manager_base.h

Issue 6602012: Adds method to invoke platform provided audio input UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_AUDIO_MANAGER_BASE_H_ 5 #ifndef MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_
6 #define MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ 6 #define MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
11 #include "media/audio/audio_manager.h" 11 #include "media/audio/audio_manager.h"
12 12
13 class AudioOutputDispatcher; 13 class AudioOutputDispatcher;
14 14
15 // AudioManagerBase provides AudioManager functions common for all platforms. 15 // AudioManagerBase provides AudioManager functions common for all platforms.
16 class AudioManagerBase : public AudioManager { 16 class AudioManagerBase : public AudioManager {
17 public: 17 public:
18 AudioManagerBase(); 18 AudioManagerBase();
19 19
20 virtual void Init(); 20 virtual void Init();
21 virtual void Cleanup(); 21 virtual void Cleanup();
22 22
23 virtual MessageLoop* GetMessageLoop(); 23 virtual MessageLoop* GetMessageLoop();
24 24
25 virtual string16 GetAudioInputDeviceModel(); 25 virtual string16 GetAudioInputDeviceModel();
26 26
27 virtual bool CanShowAudioInputSettings() { return false; }
scherkus (not reviewing) 2011/02/28 21:18:13 de-inline virtual methods http://dev.chromium.org/
28 virtual void ShowAudioInputSettings() {}
29
27 virtual AudioOutputStream* MakeAudioOutputStreamProxy( 30 virtual AudioOutputStream* MakeAudioOutputStreamProxy(
28 const AudioParameters& params); 31 const AudioParameters& params);
29 32
30 protected: 33 protected:
31 virtual ~AudioManagerBase(); 34 virtual ~AudioManagerBase();
32 35
33 typedef std::map<AudioParameters, scoped_refptr<AudioOutputDispatcher>, 36 typedef std::map<AudioParameters, scoped_refptr<AudioOutputDispatcher>,
34 AudioParameters::Compare> 37 AudioParameters::Compare>
35 AudioOutputDispatchersMap; 38 AudioOutputDispatchersMap;
36 39
37 bool initialized() { return initialized_; } 40 bool initialized() { return initialized_; }
38 41
39 // Thread used to interact with AudioOutputStreams created by this 42 // Thread used to interact with AudioOutputStreams created by this
40 // audio manger. 43 // audio manger.
41 base::Thread audio_thread_; 44 base::Thread audio_thread_;
42 45
43 bool initialized_; 46 bool initialized_;
44 47
45 AudioOutputDispatchersMap output_dispatchers_; 48 AudioOutputDispatchersMap output_dispatchers_;
46 49
47 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); 50 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase);
48 }; 51 };
49 52
50 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ 53 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698