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_RENDERER_WEBAUDIODEVICE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDERER_WEBAUDIODEVICE_IMPL_H_ | 6 #define CONTENT_RENDERER_MEDIA_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "content/renderer/media/audio_device.h" | 11 #include "content/renderer/media/audio_device.h" |
12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebAudioDevi
ce.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebAudioDevi
ce.h" |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" |
14 | 14 |
15 class RendererWebAudioDeviceImpl : public WebKit::WebAudioDevice, | 15 class RendererWebAudioDeviceImpl : public WebKit::WebAudioDevice, |
16 public AudioDevice::RenderCallback { | 16 public AudioDevice::RenderCallback { |
(...skipping 18 matching lines...) Expand all Loading... |
35 private: | 35 private: |
36 scoped_refptr<AudioDevice> audio_device_; | 36 scoped_refptr<AudioDevice> audio_device_; |
37 bool is_running_; | 37 bool is_running_; |
38 | 38 |
39 // Weak reference to the callback into WebKit code. | 39 // Weak reference to the callback into WebKit code. |
40 WebKit::WebAudioDevice::RenderCallback* client_callback_; | 40 WebKit::WebAudioDevice::RenderCallback* client_callback_; |
41 | 41 |
42 DISALLOW_COPY_AND_ASSIGN(RendererWebAudioDeviceImpl); | 42 DISALLOW_COPY_AND_ASSIGN(RendererWebAudioDeviceImpl); |
43 }; | 43 }; |
44 | 44 |
45 #endif // CONTENT_RENDERER_RENDERER_WEBAUDIODEVICE_IMPL_H_ | 45 #endif // CONTENT_RENDERER_MEDIA_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_ |
OLD | NEW |