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_WEBRTC_LOCAL_AUDIO_RENDERER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_LOCAL_AUDIO_RENDERER_H_ |
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_LOCAL_AUDIO_RENDERER_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_LOCAL_AUDIO_RENDERER_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/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
11 #include "base/threading/thread_checker.h" | 11 #include "base/threading/thread_checker.h" |
12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
13 #include "content/renderer/media/webrtc_audio_device_impl.h" | 13 #include "content/renderer/media/webrtc_audio_device_impl.h" |
14 #include "content/renderer/media/webrtc_local_audio_track.h" | 14 #include "content/renderer/media/webrtc_local_audio_track.h" |
15 #include "webkit/media/media_stream_audio_renderer.h" | 15 #include "webkit/media/media_stream_audio_renderer.h" |
16 | 16 |
17 namespace media { | 17 namespace media { |
18 class AudioBus; | 18 class AudioBus; |
| 19 class AudioFifo; |
19 class AudioOutputDevice; | 20 class AudioOutputDevice; |
20 class AudioParameters; | 21 class AudioParameters; |
21 } | 22 } |
22 | 23 |
23 namespace content { | 24 namespace content { |
24 | 25 |
25 class WebRtcAudioCapturer; | 26 class WebRtcAudioCapturer; |
26 | 27 |
27 // WebRtcLocalAudioRenderer is a webkit_media::MediaStreamAudioRenderer | 28 // WebRtcLocalAudioRenderer is a webkit_media::MediaStreamAudioRenderer |
28 // designed for rendering local audio media stream tracks, | 29 // designed for rendering local audio media stream tracks, |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 121 |
121 // Protects |loopback_fifo_|, |playing_| and |sink_|. | 122 // Protects |loopback_fifo_|, |playing_| and |sink_|. |
122 mutable base::Lock thread_lock_; | 123 mutable base::Lock thread_lock_; |
123 | 124 |
124 DISALLOW_COPY_AND_ASSIGN(WebRtcLocalAudioRenderer); | 125 DISALLOW_COPY_AND_ASSIGN(WebRtcLocalAudioRenderer); |
125 }; | 126 }; |
126 | 127 |
127 } // namespace content | 128 } // namespace content |
128 | 129 |
129 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_LOCAL_AUDIO_RENDERER_H_ | 130 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_LOCAL_AUDIO_RENDERER_H_ |
OLD | NEW |