| 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 CONTENT_RENDERER_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_ | 6 #define CONTENT_RENDERER_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include "base/cancelable_callback.h" | 10 #include "base/cancelable_callback.h" |
| 11 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 10 #include "base/threading/thread_checker.h" | 13 #include "base/threading/thread_checker.h" |
| 11 #include "media/audio/audio_parameters.h" | 14 #include "media/audio/audio_parameters.h" |
| 12 #include "media/base/audio_renderer_sink.h" | 15 #include "media/base/audio_renderer_sink.h" |
| 13 #include "third_party/WebKit/public/platform/WebAudioDevice.h" | 16 #include "third_party/WebKit/public/platform/WebAudioDevice.h" |
| 14 #include "third_party/WebKit/public/platform/WebVector.h" | 17 #include "third_party/WebKit/public/platform/WebVector.h" |
| 15 | 18 |
| 16 namespace base { | 19 namespace base { |
| 17 class SingleThreadTaskRunner; | 20 class SingleThreadTaskRunner; |
| 18 } | 21 } |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 // A cancelable task that is posted to start the |null_audio_sink_| after a | 87 // A cancelable task that is posted to start the |null_audio_sink_| after a |
| 85 // period of silence. We do this on android to save battery consumption. | 88 // period of silence. We do this on android to save battery consumption. |
| 86 base::CancelableClosure start_null_audio_sink_callback_; | 89 base::CancelableClosure start_null_audio_sink_callback_; |
| 87 | 90 |
| 88 DISALLOW_COPY_AND_ASSIGN(RendererWebAudioDeviceImpl); | 91 DISALLOW_COPY_AND_ASSIGN(RendererWebAudioDeviceImpl); |
| 89 }; | 92 }; |
| 90 | 93 |
| 91 } // namespace content | 94 } // namespace content |
| 92 | 95 |
| 93 #endif // CONTENT_RENDERER_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_ | 96 #endif // CONTENT_RENDERER_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_ |
| OLD | NEW |