OLD | NEW |
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/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
11 #include "base/synchronization/lock.h" | 11 #include "base/synchronization/lock.h" |
12 #include "base/time.h" | |
13 #include "media/audio/audio_buffers_state.h" | 12 #include "media/audio/audio_buffers_state.h" |
14 #include "media/audio/audio_io.h" | 13 #include "media/audio/audio_io.h" |
15 #include "media/audio/audio_manager.h" | 14 #include "media/audio/audio_manager.h" |
16 #include "media/audio/simple_sources.h" | 15 #include "media/audio/simple_sources.h" |
17 | 16 |
18 namespace base { | 17 namespace base { |
19 class WaitableEvent; | 18 class WaitableEvent; |
20 } // namespace base | 19 } // namespace base |
21 | 20 |
22 class MessageLoop; | 21 class MessageLoop; |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 // shutdown and force it to wait for the most delayed task. | 229 // shutdown and force it to wait for the most delayed task. |
231 // Also, if we're shutting down, we do not want to poll for more data. | 230 // Also, if we're shutting down, we do not want to poll for more data. |
232 base::WeakPtrFactory<AudioOutputController> weak_this_; | 231 base::WeakPtrFactory<AudioOutputController> weak_this_; |
233 | 232 |
234 DISALLOW_COPY_AND_ASSIGN(AudioOutputController); | 233 DISALLOW_COPY_AND_ASSIGN(AudioOutputController); |
235 }; | 234 }; |
236 | 235 |
237 } // namespace media | 236 } // namespace media |
238 | 237 |
239 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_CONTROLLER_H_ | 238 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_CONTROLLER_H_ |
OLD | NEW |