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

Side by Side Diff: content/renderer/media/media_stream_dependency_factory.h

Issue 23171026: Feed audio constraints over to WebRtcLocalAudioTrack (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address comments Created 7 years, 3 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
« no previous file with comments | « no previous file | content/renderer/media/media_stream_dependency_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/media_stream_dependency_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698