Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Side by Side Diff: content/renderer/media/webrtc_audio_renderer.h

Issue 18123002: Migrate webkit/renderer/media/ to content/renderer/media/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_AUDIO_RENDERER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_RENDERER_H_
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_RENDERER_H_ 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_RENDERER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/synchronization/lock.h" 9 #include "base/synchronization/lock.h"
10 #include "base/threading/thread_checker.h" 10 #include "base/threading/thread_checker.h"
11 #include "content/renderer/media/media_stream_audio_renderer.h"
11 #include "content/renderer/media/webrtc_audio_device_impl.h" 12 #include "content/renderer/media/webrtc_audio_device_impl.h"
12 #include "media/base/audio_decoder.h" 13 #include "media/base/audio_decoder.h"
13 #include "media/base/audio_pull_fifo.h" 14 #include "media/base/audio_pull_fifo.h"
14 #include "media/base/audio_renderer_sink.h" 15 #include "media/base/audio_renderer_sink.h"
15 #include "webkit/renderer/media/media_stream_audio_renderer.h"
16 16
17 namespace media { 17 namespace media {
18 class AudioOutputDevice; 18 class AudioOutputDevice;
19 } 19 }
20 20
21 namespace content { 21 namespace content {
22 22
23 class WebRtcAudioRendererSource; 23 class WebRtcAudioRendererSource;
24 24
25 // This renderer handles calls from the pipeline and WebRtc ADM. It is used 25 // This renderer handles calls from the pipeline and WebRtc ADM. It is used
26 // for connecting WebRtc MediaStream with the audio pipeline. 26 // for connecting WebRtc MediaStream with the audio pipeline.
27 class CONTENT_EXPORT WebRtcAudioRenderer 27 class CONTENT_EXPORT WebRtcAudioRenderer
28 : NON_EXPORTED_BASE(public media::AudioRendererSink::RenderCallback), 28 : NON_EXPORTED_BASE(public media::AudioRendererSink::RenderCallback),
29 NON_EXPORTED_BASE(public webkit_media::MediaStreamAudioRenderer) { 29 NON_EXPORTED_BASE(public MediaStreamAudioRenderer) {
30 public: 30 public:
31 explicit WebRtcAudioRenderer(int source_render_view_id); 31 explicit WebRtcAudioRenderer(int source_render_view_id);
32 32
33 // Initialize function called by clients like WebRtcAudioDeviceImpl. 33 // Initialize function called by clients like WebRtcAudioDeviceImpl.
34 // Stop() has to be called before |source| is deleted. 34 // Stop() has to be called before |source| is deleted.
35 bool Initialize(WebRtcAudioRendererSource* source); 35 bool Initialize(WebRtcAudioRendererSource* source);
36 36
37 // Methods called by WebMediaPlayerMS and WebRtcAudioDeviceImpl. 37 // Methods called by WebMediaPlayerMS and WebRtcAudioDeviceImpl.
38 // MediaStreamAudioRenderer implementation. 38 // MediaStreamAudioRenderer implementation.
39 virtual void Start() OVERRIDE; 39 virtual void Start() OVERRIDE;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 // Delay due to the FIFO in milliseconds. 100 // Delay due to the FIFO in milliseconds.
101 int fifo_delay_milliseconds_; 101 int fifo_delay_milliseconds_;
102 102
103 DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcAudioRenderer); 103 DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcAudioRenderer);
104 }; 104 };
105 105
106 } // namespace content 106 } // namespace content
107 107
108 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_RENDERER_H_ 108 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698