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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/file.h" 10 #include "base/files/file.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 class WebMediaStreamTrack; 42 class WebMediaStreamTrack;
43 class WebRTCPeerConnectionHandler; 43 class WebRTCPeerConnectionHandler;
44 class WebRTCPeerConnectionHandlerClient; 44 class WebRTCPeerConnectionHandlerClient;
45 } 45 }
46 46
47 namespace content { 47 namespace content {
48 48
49 class IpcNetworkManager; 49 class IpcNetworkManager;
50 class IpcPacketSocketFactory; 50 class IpcPacketSocketFactory;
51 class MediaStreamAudioSource; 51 class MediaStreamAudioSource;
52 class RTCMediaConstraints;
53 class WebAudioCapturerSource; 52 class WebAudioCapturerSource;
54 class WebRtcAudioCapturer; 53 class WebRtcAudioCapturer;
55 class WebRtcAudioDeviceImpl; 54 class WebRtcAudioDeviceImpl;
56 class WebRtcLocalAudioTrack; 55 class WebRtcLocalAudioTrack;
57 class WebRtcLoggingHandlerImpl; 56 class WebRtcLoggingHandlerImpl;
58 class WebRtcLoggingMessageFilter; 57 class WebRtcLoggingMessageFilter;
59 class WebRtcVideoCapturerAdapter; 58 class WebRtcVideoCapturerAdapter;
60 struct StreamDeviceInfo; 59 struct StreamDeviceInfo;
61 60
62 // Object factory for RTC PeerConnections. 61 // Object factory for RTC PeerConnections.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 void CreateRemoteAudioTrack(const blink::WebMediaStreamTrack& track); 97 void CreateRemoteAudioTrack(const blink::WebMediaStreamTrack& track);
99 98
100 // Asks the PeerConnection factory to create a Local VideoTrack object. 99 // Asks the PeerConnection factory to create a Local VideoTrack object.
101 virtual scoped_refptr<webrtc::VideoTrackInterface> CreateLocalVideoTrack( 100 virtual scoped_refptr<webrtc::VideoTrackInterface> CreateLocalVideoTrack(
102 const std::string& id, 101 const std::string& id,
103 webrtc::VideoTrackSourceInterface* source); 102 webrtc::VideoTrackSourceInterface* source);
104 103
105 // Asks the PeerConnection factory to create a Video Source. 104 // Asks the PeerConnection factory to create a Video Source.
106 // The video source takes ownership of |capturer|. 105 // The video source takes ownership of |capturer|.
107 virtual scoped_refptr<webrtc::VideoTrackSourceInterface> CreateVideoSource( 106 virtual scoped_refptr<webrtc::VideoTrackSourceInterface> CreateVideoSource(
108 cricket::VideoCapturer* capturer, 107 cricket::VideoCapturer* capturer);
109 const blink::WebMediaConstraints& constraints);
110 108
111 // Asks the libjingle PeerConnection factory to create a libjingle 109 // Asks the libjingle PeerConnection factory to create a libjingle
112 // PeerConnection object. 110 // PeerConnection object.
113 // The PeerConnection object is owned by PeerConnectionHandler. 111 // The PeerConnection object is owned by PeerConnectionHandler.
114 virtual scoped_refptr<webrtc::PeerConnectionInterface> 112 virtual scoped_refptr<webrtc::PeerConnectionInterface>
115 CreatePeerConnection( 113 CreatePeerConnection(
116 const webrtc::PeerConnectionInterface::RTCConfiguration& config, 114 const webrtc::PeerConnectionInterface::RTCConfiguration& config,
117 const webrtc::MediaConstraintsInterface* constraints,
118 blink::WebFrame* web_frame, 115 blink::WebFrame* web_frame,
119 webrtc::PeerConnectionObserver* observer); 116 webrtc::PeerConnectionObserver* observer);
120 117
121 // Creates a libjingle representation of a Session description. Used by a 118 // Creates a libjingle representation of a Session description. Used by a
122 // RTCPeerConnectionHandler instance. 119 // RTCPeerConnectionHandler instance.
123 virtual webrtc::SessionDescriptionInterface* CreateSessionDescription( 120 virtual webrtc::SessionDescriptionInterface* CreateSessionDescription(
124 const std::string& type, 121 const std::string& type,
125 const std::string& sdp, 122 const std::string& sdp,
126 webrtc::SdpParseError* error); 123 webrtc::SdpParseError* error);
127 124
(...skipping 10 matching lines...) Expand all
138 virtual void StopRtcEventLog(); 135 virtual void StopRtcEventLog();
139 136
140 WebRtcAudioDeviceImpl* GetWebRtcAudioDevice(); 137 WebRtcAudioDeviceImpl* GetWebRtcAudioDevice();
141 138
142 void EnsureInitialized(); 139 void EnsureInitialized();
143 scoped_refptr<base::SingleThreadTaskRunner> GetWebRtcWorkerThread() const; 140 scoped_refptr<base::SingleThreadTaskRunner> GetWebRtcWorkerThread() const;
144 scoped_refptr<base::SingleThreadTaskRunner> GetWebRtcSignalingThread() const; 141 scoped_refptr<base::SingleThreadTaskRunner> GetWebRtcSignalingThread() const;
145 142
146 protected: 143 protected:
147 // Asks the PeerConnection factory to create a Local Audio Source. 144 // Asks the PeerConnection factory to create a Local Audio Source.
148 virtual scoped_refptr<webrtc::AudioSourceInterface> 145 virtual scoped_refptr<webrtc::AudioSourceInterface> CreateLocalAudioSource(
149 CreateLocalAudioSource( 146 const cricket::AudioOptions& options);
150 const webrtc::MediaConstraintsInterface* constraints);
151 147
152 // Creates a media::AudioCapturerSource with an implementation that is 148 // Creates a media::AudioCapturerSource with an implementation that is
153 // specific for a WebAudio source. The created WebAudioCapturerSource 149 // specific for a WebAudio source. The created WebAudioCapturerSource
154 // instance will function as audio source instead of the default 150 // instance will function as audio source instead of the default
155 // WebRtcAudioCapturer. Ownership of the new WebAudioCapturerSource is 151 // WebRtcAudioCapturer. Ownership of the new WebAudioCapturerSource is
156 // transferred to |source|. 152 // transferred to |source|.
157 virtual void CreateWebAudioSource(blink::WebMediaStreamSource* source); 153 virtual void CreateWebAudioSource(blink::WebMediaStreamSource* source);
158 154
159 // Asks the PeerConnection factory to create a Local VideoTrack object with 155 // Asks the PeerConnection factory to create a Local VideoTrack object with
160 // the video source using |capturer|. 156 // the video source using |capturer|.
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 rtc::Thread* worker_thread_; 218 rtc::Thread* worker_thread_;
223 base::Thread chrome_signaling_thread_; 219 base::Thread chrome_signaling_thread_;
224 base::Thread chrome_worker_thread_; 220 base::Thread chrome_worker_thread_;
225 221
226 DISALLOW_COPY_AND_ASSIGN(PeerConnectionDependencyFactory); 222 DISALLOW_COPY_AND_ASSIGN(PeerConnectionDependencyFactory);
227 }; 223 };
228 224
229 } // namespace content 225 } // namespace content
230 226
231 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ 227 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698