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

Side by Side Diff: media/audio/openbsd/audio_manager_openbsd.h

Issue 10826174: Dead code elimination: scythe.chrome_functions:segment.path %media% edition, round 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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
« no previous file with comments | « media/audio/mock_audio_manager.cc ('k') | media/audio/openbsd/audio_manager_openbsd.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_OPENBSD_AUDIO_MANAGER_OPENBSD_H_ 5 #ifndef MEDIA_AUDIO_OPENBSD_AUDIO_MANAGER_OPENBSD_H_
6 #define MEDIA_AUDIO_OPENBSD_AUDIO_MANAGER_OPENBSD_H_ 6 #define MEDIA_AUDIO_OPENBSD_AUDIO_MANAGER_OPENBSD_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "media/audio/audio_manager_base.h" 11 #include "media/audio/audio_manager_base.h"
12 12
13 namespace media { 13 namespace media {
14 14
15 class MEDIA_EXPORT AudioManagerOpenBSD : public AudioManagerBase { 15 class MEDIA_EXPORT AudioManagerOpenBSD : public AudioManagerBase {
16 public: 16 public:
17 AudioManagerOpenBSD(); 17 AudioManagerOpenBSD();
18 18
19 // Call before using a newly created AudioManagerOpenBSD instance. 19 // Call before using a newly created AudioManagerOpenBSD instance.
20 virtual void Init() OVERRIDE; 20 virtual void Init() OVERRIDE;
21 21
22 // Implementation of AudioManager. 22 // Implementation of AudioManager.
23 virtual bool HasAudioOutputDevices() OVERRIDE; 23 virtual bool HasAudioOutputDevices() OVERRIDE;
24 virtual bool HasAudioInputDevices() OVERRIDE; 24 virtual bool HasAudioInputDevices() OVERRIDE;
25 virtual void MuteAll() OVERRIDE;
26 virtual void UnMuteAll() OVERRIDE;
27 25
28 // Implementation of AudioManagerBase. 26 // Implementation of AudioManagerBase.
29 virtual AudioOutputStream* MakeLinearOutputStream( 27 virtual AudioOutputStream* MakeLinearOutputStream(
30 const AudioParameters& params) OVERRIDE; 28 const AudioParameters& params) OVERRIDE;
31 virtual AudioOutputStream* MakeLowLatencyOutputStream( 29 virtual AudioOutputStream* MakeLowLatencyOutputStream(
32 const AudioParameters& params) OVERRIDE; 30 const AudioParameters& params) OVERRIDE;
33 virtual AudioInputStream* MakeLinearInputStream( 31 virtual AudioInputStream* MakeLinearInputStream(
34 const AudioParameters& params, const std::string& device_id) OVERRIDE; 32 const AudioParameters& params, const std::string& device_id) OVERRIDE;
35 virtual AudioInputStream* MakeLowLatencyInputStream( 33 virtual AudioInputStream* MakeLowLatencyInputStream(
36 const AudioParameters& params, const std::string& device_id) OVERRIDE; 34 const AudioParameters& params, const std::string& device_id) OVERRIDE;
37 35
38 protected: 36 protected:
39 virtual ~AudioManagerOpenBSD(); 37 virtual ~AudioManagerOpenBSD();
40 38
41 private: 39 private:
42 // Called by MakeLinearOutputStream and MakeLowLatencyOutputStream. 40 // Called by MakeLinearOutputStream and MakeLowLatencyOutputStream.
43 AudioOutputStream* MakeOutputStream(const AudioParameters& params); 41 AudioOutputStream* MakeOutputStream(const AudioParameters& params);
44 42
45 DISALLOW_COPY_AND_ASSIGN(AudioManagerOpenBSD); 43 DISALLOW_COPY_AND_ASSIGN(AudioManagerOpenBSD);
46 }; 44 };
47 45
48 } // namespace media 46 } // namespace media
49 47
50 #endif // MEDIA_AUDIO_OPENBSD_AUDIO_MANAGER_OPENBSD_H_ 48 #endif // MEDIA_AUDIO_OPENBSD_AUDIO_MANAGER_OPENBSD_H_
OLDNEW
« no previous file with comments | « media/audio/mock_audio_manager.cc ('k') | media/audio/openbsd/audio_manager_openbsd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698