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

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

Issue 13243003: Move MessageLoop to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « media/audio/audio_manager.h ('k') | media/audio/audio_output_dispatcher.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_OUTPUT_CONTROLLER_H_ 5 #ifndef MEDIA_AUDIO_AUDIO_OUTPUT_CONTROLLER_H_
6 #define MEDIA_AUDIO_AUDIO_OUTPUT_CONTROLLER_H_ 6 #define MEDIA_AUDIO_AUDIO_OUTPUT_CONTROLLER_H_
7 7
8 #include "base/atomic_ref_count.h" 8 #include "base/atomic_ref_count.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/timer.h" 13 #include "base/timer.h"
14 #include "media/audio/audio_buffers_state.h" 14 #include "media/audio/audio_buffers_state.h"
15 #include "media/audio/audio_io.h" 15 #include "media/audio/audio_io.h"
16 #include "media/audio/audio_manager.h" 16 #include "media/audio/audio_manager.h"
17 #include "media/audio/audio_source_diverter.h" 17 #include "media/audio/audio_source_diverter.h"
18 #include "media/audio/simple_sources.h" 18 #include "media/audio/simple_sources.h"
19 #include "media/base/media_export.h" 19 #include "media/base/media_export.h"
20 20
21 class MessageLoop;
22
23 // An AudioOutputController controls an AudioOutputStream and provides data 21 // An AudioOutputController controls an AudioOutputStream and provides data
24 // to this output stream. It has an important function that it executes 22 // to this output stream. It has an important function that it executes
25 // audio operations like play, pause, stop, etc. on a separate thread, 23 // audio operations like play, pause, stop, etc. on a separate thread,
26 // namely the audio manager thread. 24 // namely the audio manager thread.
27 // 25 //
28 // All the public methods of AudioOutputController are non-blocking. 26 // All the public methods of AudioOutputController are non-blocking.
29 // The actual operations are performed on the audio manager thread. 27 // The actual operations are performed on the audio manager thread.
30 // 28 //
31 // Here is a state transition diagram for the AudioOutputController: 29 // Here is a state transition diagram for the AudioOutputController:
32 // 30 //
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 // EventHandler::OnAudbile() to be called whenever a transition to a period of 255 // EventHandler::OnAudbile() to be called whenever a transition to a period of
258 // silence or non-silence is detected. 256 // silence or non-silence is detected.
259 scoped_ptr<AudioSilenceDetector> silence_detector_; 257 scoped_ptr<AudioSilenceDetector> silence_detector_;
260 258
261 DISALLOW_COPY_AND_ASSIGN(AudioOutputController); 259 DISALLOW_COPY_AND_ASSIGN(AudioOutputController);
262 }; 260 };
263 261
264 } // namespace media 262 } // namespace media
265 263
266 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_CONTROLLER_H_ 264 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_CONTROLLER_H_
OLDNEW
« no previous file with comments | « media/audio/audio_manager.h ('k') | media/audio/audio_output_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698