OLD | NEW |
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_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ |
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 class WebMediaConstraints; | 35 class WebMediaConstraints; |
36 class WebMediaStream; | 36 class WebMediaStream; |
37 class WebRTCPeerConnectionHandler; | 37 class WebRTCPeerConnectionHandler; |
38 class WebRTCPeerConnectionHandlerClient; | 38 class WebRTCPeerConnectionHandlerClient; |
39 } | 39 } |
40 | 40 |
41 namespace content { | 41 namespace content { |
42 | 42 |
43 class IpcNetworkManager; | 43 class IpcNetworkManager; |
44 class IpcPacketSocketFactory; | 44 class IpcPacketSocketFactory; |
| 45 class RTCMediaConstraints; |
45 class VideoCaptureImplManager; | 46 class VideoCaptureImplManager; |
46 class WebRtcAudioCapturer; | 47 class WebRtcAudioCapturer; |
47 class WebRtcAudioDeviceImpl; | 48 class WebRtcAudioDeviceImpl; |
48 class WebRtcLoggingHandlerImpl; | 49 class WebRtcLoggingHandlerImpl; |
49 class WebRtcLoggingMessageFilter; | 50 class WebRtcLoggingMessageFilter; |
50 struct StreamDeviceInfo; | 51 struct StreamDeviceInfo; |
51 | 52 |
52 #if defined(GOOGLE_TV) | 53 #if defined(GOOGLE_TV) |
53 class RTCVideoDecoderFactoryTv; | 54 class RTCVideoDecoderFactoryTv; |
54 #endif | 55 #endif |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 virtual scoped_refptr<webrtc::VideoSourceInterface> | 155 virtual scoped_refptr<webrtc::VideoSourceInterface> |
155 CreateLocalVideoSource( | 156 CreateLocalVideoSource( |
156 int video_session_id, | 157 int video_session_id, |
157 bool is_screen_cast, | 158 bool is_screen_cast, |
158 const webrtc::MediaConstraintsInterface* constraints); | 159 const webrtc::MediaConstraintsInterface* constraints); |
159 | 160 |
160 // Creates a media::AudioCapturerSource with an implementation that is | 161 // Creates a media::AudioCapturerSource with an implementation that is |
161 // specific for a WebAudio source. The created WebAudioCapturerSource | 162 // specific for a WebAudio source. The created WebAudioCapturerSource |
162 // instance will function as audio source instead of the default | 163 // instance will function as audio source instead of the default |
163 // WebRtcAudioCapturer. | 164 // WebRtcAudioCapturer. |
| 165 // The |constraints| will be modified to include the default, mandatory |
| 166 // WebAudio constraints. |
164 virtual scoped_refptr<WebRtcAudioCapturer> CreateWebAudioSource( | 167 virtual scoped_refptr<WebRtcAudioCapturer> CreateWebAudioSource( |
165 WebKit::WebMediaStreamSource* source); | 168 WebKit::WebMediaStreamSource* source, |
| 169 RTCMediaConstraints* constraints); |
166 | 170 |
167 // Asks the PeerConnection factory to create a Local AudioTrack object. | 171 // Asks the PeerConnection factory to create a Local AudioTrack object. |
168 virtual scoped_refptr<webrtc::AudioTrackInterface> | 172 virtual scoped_refptr<webrtc::AudioTrackInterface> |
169 CreateLocalAudioTrack(const std::string& id, | 173 CreateLocalAudioTrack( |
170 const scoped_refptr<WebRtcAudioCapturer>& capturer, | 174 const std::string& id, |
171 webrtc::AudioSourceInterface* source); | 175 const scoped_refptr<WebRtcAudioCapturer>& capturer, |
| 176 webrtc::AudioSourceInterface* source, |
| 177 const webrtc::MediaConstraintsInterface* constraints); |
172 | 178 |
173 // Asks the PeerConnection factory to create a Local VideoTrack object. | 179 // Asks the PeerConnection factory to create a Local VideoTrack object. |
174 virtual scoped_refptr<webrtc::VideoTrackInterface> | 180 virtual scoped_refptr<webrtc::VideoTrackInterface> |
175 CreateLocalVideoTrack(const std::string& id, | 181 CreateLocalVideoTrack(const std::string& id, |
176 webrtc::VideoSourceInterface* source); | 182 webrtc::VideoSourceInterface* source); |
177 | 183 |
178 // Asks the PeerConnection factory to create a Local VideoTrack object with | 184 // Asks the PeerConnection factory to create a Local VideoTrack object with |
179 // the video source using |capturer|. | 185 // the video source using |capturer|. |
180 virtual scoped_refptr<webrtc::VideoTrackInterface> | 186 virtual scoped_refptr<webrtc::VideoTrackInterface> |
181 CreateLocalVideoTrack(const std::string& id, | 187 CreateLocalVideoTrack(const std::string& id, |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 talk_base::Thread* signaling_thread_; | 234 talk_base::Thread* signaling_thread_; |
229 talk_base::Thread* worker_thread_; | 235 talk_base::Thread* worker_thread_; |
230 base::Thread chrome_worker_thread_; | 236 base::Thread chrome_worker_thread_; |
231 | 237 |
232 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory); | 238 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory); |
233 }; | 239 }; |
234 | 240 |
235 } // namespace content | 241 } // namespace content |
236 | 242 |
237 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 243 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ |
OLD | NEW |