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

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

Issue 12224027: Revert "GTTF: Add missing virtual destructors." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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 | « ipc/ipc_channel_proxy.h ('k') | media/filters/ffmpeg_glue.h » ('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_AUDIO_MANAGER_H_ 5 #ifndef MEDIA_AUDIO_AUDIO_MANAGER_H_
6 #define MEDIA_AUDIO_AUDIO_MANAGER_H_ 6 #define MEDIA_AUDIO_AUDIO_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 virtual bool IsRecordingInProcess() = 0; 110 virtual bool IsRecordingInProcess() = 0;
111 111
112 // Returns message loop used for audio IO. 112 // Returns message loop used for audio IO.
113 virtual scoped_refptr<base::MessageLoopProxy> GetMessageLoop() = 0; 113 virtual scoped_refptr<base::MessageLoopProxy> GetMessageLoop() = 0;
114 114
115 // Allows clients to listen for device state changes; e.g. preferred sample 115 // Allows clients to listen for device state changes; e.g. preferred sample
116 // rate or channel layout changes. The typical response to receiving this 116 // rate or channel layout changes. The typical response to receiving this
117 // callback is to recreate the stream. 117 // callback is to recreate the stream.
118 class AudioDeviceListener { 118 class AudioDeviceListener {
119 public: 119 public:
120 virtual ~AudioDeviceListener() { }
121
122 virtual void OnDeviceChange() = 0; 120 virtual void OnDeviceChange() = 0;
123 }; 121 };
124 122
125 virtual void AddOutputDeviceChangeListener(AudioDeviceListener* listener) = 0; 123 virtual void AddOutputDeviceChangeListener(AudioDeviceListener* listener) = 0;
126 virtual void RemoveOutputDeviceChangeListener( 124 virtual void RemoveOutputDeviceChangeListener(
127 AudioDeviceListener* listener) = 0; 125 AudioDeviceListener* listener) = 0;
128 126
129 protected: 127 protected:
130 AudioManager(); 128 AudioManager();
131 129
132 private: 130 private:
133 DISALLOW_COPY_AND_ASSIGN(AudioManager); 131 DISALLOW_COPY_AND_ASSIGN(AudioManager);
134 }; 132 };
135 133
136 } // namespace media 134 } // namespace media
137 135
138 #endif // MEDIA_AUDIO_AUDIO_MANAGER_H_ 136 #endif // MEDIA_AUDIO_AUDIO_MANAGER_H_
OLDNEW
« no previous file with comments | « ipc/ipc_channel_proxy.h ('k') | media/filters/ffmpeg_glue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698