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

Unified Diff: content/renderer/media/webrtc_audio_capturer.h

Issue 883293005: Cast: Basic cast_receiver API for chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed extra BUILD.gn line Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/webrtc_audio_capturer.h
diff --git a/content/renderer/media/webrtc_audio_capturer.h b/content/renderer/media/webrtc_audio_capturer.h
index ed72fad14ac9eeb687505da24c89deb9ae925e6c..618cb4fdd50e11a9f90b8bd756990ef14c00eb35 100644
--- a/content/renderer/media/webrtc_audio_capturer.h
+++ b/content/renderer/media/webrtc_audio_capturer.h
@@ -109,8 +109,8 @@ class CONTENT_EXPORT WebRtcAudioCapturer
// Called on the main render thread.
media::AudioParameters GetOutputFormat() const;
- // Used by the unittests to inject their own source to the capturer.
- void SetCapturerSourceForTesting(
+ // Used by clients to inject their own source to the capturer.
+ void SetCapturerSource(
const scoped_refptr<media::AudioCapturerSource>& source,
media::AudioParameters params);
@@ -140,11 +140,11 @@ class CONTENT_EXPORT WebRtcAudioCapturer
// view id and device information. Return true if success, otherwise false.
bool Initialize();
- // SetCapturerSource() is called if the client on the source side desires to
- // provide their own captured audio data. Client is responsible for calling
- // Start() on its own source to have the ball rolling.
+ // SetCapturerSourceInternal() is called if the client on the source side
+ // desires to provide their own captured audio data. Client is responsible
+ // for calling Start() on its own source to get the ball rolling.
// Called on the main render thread.
- void SetCapturerSource(
+ void SetCapturerSourceInternal(
const scoped_refptr<media::AudioCapturerSource>& source,
media::ChannelLayout channel_layout,
float sample_rate);
« no previous file with comments | « content/renderer/media/webrtc/webrtc_video_capturer_adapter.h ('k') | content/renderer/media/webrtc_audio_capturer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698