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

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

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 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 | « jingle/notifier/listener/xmpp_push_client.h ('k') | media/audio/audio_manager_base.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_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 <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // Max number of open input streams. 167 // Max number of open input streams.
168 int max_num_input_streams_; 168 int max_num_input_streams_;
169 169
170 // Number of currently open output streams. 170 // Number of currently open output streams.
171 int num_output_streams_; 171 int num_output_streams_;
172 172
173 // Number of currently open input streams. 173 // Number of currently open input streams.
174 int num_input_streams_; 174 int num_input_streams_;
175 175
176 // Track output state change listeners. 176 // Track output state change listeners.
177 ObserverList<AudioDeviceListener> output_listeners_; 177 base::ObserverList<AudioDeviceListener> output_listeners_;
178 178
179 // Thread used to interact with audio streams created by this audio manager. 179 // Thread used to interact with audio streams created by this audio manager.
180 base::Thread audio_thread_; 180 base::Thread audio_thread_;
181 181
182 // The task runner of the audio thread this object runs on. Used for internal 182 // The task runner of the audio thread this object runs on. Used for internal
183 // tasks which run on the audio thread even after Shutdown() has been started 183 // tasks which run on the audio thread even after Shutdown() has been started
184 // and GetTaskRunner() starts returning NULL. 184 // and GetTaskRunner() starts returning NULL.
185 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 185 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
186 186
187 // Map of cached AudioOutputDispatcher instances. Must only be touched 187 // Map of cached AudioOutputDispatcher instances. Must only be touched
188 // from the audio thread (no locking). 188 // from the audio thread (no locking).
189 AudioOutputDispatchers output_dispatchers_; 189 AudioOutputDispatchers output_dispatchers_;
190 190
191 // Proxy for creating AudioLog objects. 191 // Proxy for creating AudioLog objects.
192 AudioLogFactory* const audio_log_factory_; 192 AudioLogFactory* const audio_log_factory_;
193 193
194 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); 194 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase);
195 }; 195 };
196 196
197 } // namespace media 197 } // namespace media
198 198
199 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ 199 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_
OLDNEW
« no previous file with comments | « jingle/notifier/listener/xmpp_push_client.h ('k') | media/audio/audio_manager_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698