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_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_ |
6 #define CONTENT_RENDERER_MEDIA_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_ | 6 #define CONTENT_RENDERER_MEDIA_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/threading/thread_checker.h" | 9 #include "base/threading/thread_checker.h" |
10 #include "media/audio/audio_parameters.h" | 10 #include "media/audio/audio_parameters.h" |
11 #include "media/base/audio_renderer_sink.h" | 11 #include "media/base/audio_renderer_sink.h" |
12 #include "third_party/WebKit/Source/Platform/chromium/public/WebAudioDevice.h" | 12 #include "third_party/WebKit/public/platform/WebAudioDevice.h" |
13 #include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h" | 13 #include "third_party/WebKit/public/platform/WebVector.h" |
14 | 14 |
15 namespace media { | 15 namespace media { |
16 class AudioOutputDevice; | 16 class AudioOutputDevice; |
17 } | 17 } |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 | 20 |
21 class RendererWebAudioDeviceImpl | 21 class RendererWebAudioDeviceImpl |
22 : public WebKit::WebAudioDevice, | 22 : public WebKit::WebAudioDevice, |
23 public media::AudioRendererSink::RenderCallback { | 23 public media::AudioRendererSink::RenderCallback { |
(...skipping 29 matching lines...) Expand all Loading... |
53 | 53 |
54 // When non-NULL, we are started. When NULL, we are stopped. | 54 // When non-NULL, we are started. When NULL, we are stopped. |
55 scoped_refptr<media::AudioOutputDevice> output_device_; | 55 scoped_refptr<media::AudioOutputDevice> output_device_; |
56 | 56 |
57 DISALLOW_COPY_AND_ASSIGN(RendererWebAudioDeviceImpl); | 57 DISALLOW_COPY_AND_ASSIGN(RendererWebAudioDeviceImpl); |
58 }; | 58 }; |
59 | 59 |
60 } // namespace content | 60 } // namespace content |
61 | 61 |
62 #endif // CONTENT_RENDERER_MEDIA_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_ | 62 #endif // CONTENT_RENDERER_MEDIA_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_ |
OLD | NEW |