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

Unified Diff: content/renderer/media/webrtc/peer_connection_dependency_factory.h

Issue 1729683002: Remove old-style constraints from Chrome internals (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Complete the interface change Created 4 years, 9 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/peer_connection_dependency_factory.h
diff --git a/content/renderer/media/webrtc/peer_connection_dependency_factory.h b/content/renderer/media/webrtc/peer_connection_dependency_factory.h
index 03c3a1a594e576388bfe46f9091ed0edd24a1d61..f1007cea0ac6b4fbe34941955be3efe91b8d80b9 100644
--- a/content/renderer/media/webrtc/peer_connection_dependency_factory.h
+++ b/content/renderer/media/webrtc/peer_connection_dependency_factory.h
@@ -49,7 +49,6 @@ namespace content {
class IpcNetworkManager;
class IpcPacketSocketFactory;
class MediaStreamAudioSource;
-class RTCMediaConstraints;
class WebAudioCapturerSource;
class WebRtcAudioCapturer;
class WebRtcAudioDeviceImpl;
@@ -105,8 +104,7 @@ class CONTENT_EXPORT PeerConnectionDependencyFactory
// Asks the PeerConnection factory to create a Video Source.
// The video source takes ownership of |capturer|.
virtual scoped_refptr<webrtc::VideoTrackSourceInterface> CreateVideoSource(
- cricket::VideoCapturer* capturer,
- const blink::WebMediaConstraints& constraints);
+ cricket::VideoCapturer* capturer);
// Asks the libjingle PeerConnection factory to create a libjingle
// PeerConnection object.
@@ -114,7 +112,6 @@ class CONTENT_EXPORT PeerConnectionDependencyFactory
virtual scoped_refptr<webrtc::PeerConnectionInterface>
CreatePeerConnection(
const webrtc::PeerConnectionInterface::RTCConfiguration& config,
- const webrtc::MediaConstraintsInterface* constraints,
blink::WebFrame* web_frame,
webrtc::PeerConnectionObserver* observer);
@@ -145,9 +142,8 @@ class CONTENT_EXPORT PeerConnectionDependencyFactory
protected:
// Asks the PeerConnection factory to create a Local Audio Source.
- virtual scoped_refptr<webrtc::AudioSourceInterface>
- CreateLocalAudioSource(
- const webrtc::MediaConstraintsInterface* constraints);
+ virtual scoped_refptr<webrtc::AudioSourceInterface> CreateLocalAudioSource(
+ const cricket::AudioOptions& options);
// Creates a media::AudioCapturerSource with an implementation that is
// specific for a WebAudio source. The created WebAudioCapturerSource

Powered by Google App Engine
This is Rietveld 408576698