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

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

Issue 10836025: Part 1: Plumb render view ID to render host (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments Created 8 years, 4 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_DEVICE_IMPL_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 // (WebRTC client a media layer). This approach ensures that we can avoid 202 // (WebRTC client a media layer). This approach ensures that we can avoid
203 // transferring maximum levels between the renderer and the browser. 203 // transferring maximum levels between the renderer and the browser.
204 // 204 //
205 class CONTENT_EXPORT WebRtcAudioDeviceImpl 205 class CONTENT_EXPORT WebRtcAudioDeviceImpl
206 : NON_EXPORTED_BASE(public webrtc::AudioDeviceModule), 206 : NON_EXPORTED_BASE(public webrtc::AudioDeviceModule),
207 NON_EXPORTED_BASE(public media::AudioRendererSink::RenderCallback), 207 NON_EXPORTED_BASE(public media::AudioRendererSink::RenderCallback),
208 NON_EXPORTED_BASE(public media::AudioInputDevice::CaptureCallback), 208 NON_EXPORTED_BASE(public media::AudioInputDevice::CaptureCallback),
209 NON_EXPORTED_BASE(public media::AudioInputDevice::CaptureEventHandler) { 209 NON_EXPORTED_BASE(public media::AudioInputDevice::CaptureEventHandler) {
210 public: 210 public:
211 // Methods called on main render thread. 211 // Methods called on main render thread.
212 WebRtcAudioDeviceImpl(); 212 WebRtcAudioDeviceImpl(int render_view_id);
213 213
214 // webrtc::RefCountedModule implementation. 214 // webrtc::RefCountedModule implementation.
215 // The creator must call AddRef() after construction and use Release() 215 // The creator must call AddRef() after construction and use Release()
216 // to release the reference and delete this object. 216 // to release the reference and delete this object.
217 virtual int32_t AddRef() OVERRIDE; 217 virtual int32_t AddRef() OVERRIDE;
218 virtual int32_t Release() OVERRIDE; 218 virtual int32_t Release() OVERRIDE;
219 219
220 // We need this one to support runnable method tasks. 220 // We need this one to support runnable method tasks.
221 static bool ImplementsThreadSafeReferenceCounting() { return true; } 221 static bool ImplementsThreadSafeReferenceCounting() { return true; }
222 222
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 bool agc_is_enabled_; 450 bool agc_is_enabled_;
451 451
452 // Used for histograms of total recording and playout times. 452 // Used for histograms of total recording and playout times.
453 base::Time start_capture_time_; 453 base::Time start_capture_time_;
454 base::Time start_render_time_; 454 base::Time start_render_time_;
455 455
456 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioDeviceImpl); 456 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioDeviceImpl);
457 }; 457 };
458 458
459 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ 459 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698