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

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

Issue 12086092: Implement audio constraints for PeerConneciton API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove one spa Created 7 years, 11 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/media_stream_source_extra_data.h
diff --git a/content/renderer/media/media_stream_source_extra_data.h b/content/renderer/media/media_stream_source_extra_data.h
index 9b334a14ce12814de33ab3f9b037ff251aad3040..a5fb9ad2d53e6a72ad697e0820faf97e1eaa1b44 100644
--- a/content/renderer/media/media_stream_source_extra_data.h
+++ b/content/renderer/media/media_stream_source_extra_data.h
@@ -33,14 +33,27 @@ class CONTENT_EXPORT MediaStreamSourceExtraData
video_source_ = source;
}
+ void SetLocalAudioSource(webrtc::AudioSourceInterface* source) {
+ local_audio_source_ = source;
+ }
+
webrtc::VideoSourceInterface* video_source() { return video_source_; }
media::AudioCapturerSource* audio_source() { return audio_source_; }
+ webrtc::AudioSourceInterface* local_audio_source() {
+ return local_audio_source_;
+ }
private:
StreamDeviceInfo device_info_;
scoped_refptr<webrtc::VideoSourceInterface> video_source_;
scoped_refptr<media::AudioCapturerSource> audio_source_;
+ // This member holds an instance of webrtc::LocalAudioSource. This is used
+ // as a container for audio options.
+ // TODO(hclam): This should be merged with |audio_source_| such that it
+ // carries audio options.
+ scoped_refptr<webrtc::AudioSourceInterface> local_audio_source_;
+
DISALLOW_COPY_AND_ASSIGN(MediaStreamSourceExtraData);
};
« no previous file with comments | « content/renderer/media/media_stream_impl_unittest.cc ('k') | content/renderer/media/mock_media_stream_dependency_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698