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

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

Issue 23691038: Switch LiveAudio to source provider solution. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed the android bot 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 | Annotate | Revision Log
« no previous file with comments | « content/content_tests.gypi ('k') | 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 26 matching lines...) Expand all
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 RTCMediaConstraints;
46 class VideoCaptureImplManager; 46 class VideoCaptureImplManager;
47 class WebAudioCapturerSource;
47 class WebRtcAudioCapturer; 48 class WebRtcAudioCapturer;
48 class WebRtcAudioDeviceImpl; 49 class WebRtcAudioDeviceImpl;
49 class WebRtcLoggingHandlerImpl; 50 class WebRtcLoggingHandlerImpl;
50 class WebRtcLoggingMessageFilter; 51 class WebRtcLoggingMessageFilter;
51 struct StreamDeviceInfo; 52 struct StreamDeviceInfo;
52 53
53 #if defined(GOOGLE_TV) 54 #if defined(GOOGLE_TV)
54 class RTCVideoDecoderFactoryTv; 55 class RTCVideoDecoderFactoryTv;
55 #endif 56 #endif
56 57
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 int video_session_id, 158 int video_session_id,
158 bool is_screen_cast, 159 bool is_screen_cast,
159 const webrtc::MediaConstraintsInterface* constraints); 160 const webrtc::MediaConstraintsInterface* constraints);
160 161
161 // Creates a media::AudioCapturerSource with an implementation that is 162 // Creates a media::AudioCapturerSource with an implementation that is
162 // specific for a WebAudio source. The created WebAudioCapturerSource 163 // specific for a WebAudio source. The created WebAudioCapturerSource
163 // instance will function as audio source instead of the default 164 // instance will function as audio source instead of the default
164 // WebRtcAudioCapturer. 165 // WebRtcAudioCapturer.
165 // The |constraints| will be modified to include the default, mandatory 166 // The |constraints| will be modified to include the default, mandatory
166 // WebAudio constraints. 167 // WebAudio constraints.
167 virtual scoped_refptr<WebRtcAudioCapturer> CreateWebAudioSource( 168 virtual scoped_refptr<WebAudioCapturerSource> CreateWebAudioSource(
168 WebKit::WebMediaStreamSource* source, 169 WebKit::WebMediaStreamSource* source, RTCMediaConstraints* constraints);
169 RTCMediaConstraints* constraints);
170 170
171 // Asks the PeerConnection factory to create a Local AudioTrack object. 171 // Asks the PeerConnection factory to create a Local AudioTrack object.
172 virtual scoped_refptr<webrtc::AudioTrackInterface> 172 virtual scoped_refptr<webrtc::AudioTrackInterface>
173 CreateLocalAudioTrack( 173 CreateLocalAudioTrack(
174 const std::string& id, 174 const std::string& id,
175 const scoped_refptr<WebRtcAudioCapturer>& capturer, 175 const scoped_refptr<WebRtcAudioCapturer>& capturer,
176 WebAudioCapturerSource* webaudio_source,
176 webrtc::AudioSourceInterface* source, 177 webrtc::AudioSourceInterface* source,
177 const webrtc::MediaConstraintsInterface* constraints); 178 const webrtc::MediaConstraintsInterface* constraints);
178 179
179 // Asks the PeerConnection factory to create a Local VideoTrack object. 180 // Asks the PeerConnection factory to create a Local VideoTrack object.
180 virtual scoped_refptr<webrtc::VideoTrackInterface> 181 virtual scoped_refptr<webrtc::VideoTrackInterface>
181 CreateLocalVideoTrack(const std::string& id, 182 CreateLocalVideoTrack(const std::string& id,
182 webrtc::VideoSourceInterface* source); 183 webrtc::VideoSourceInterface* source);
183 184
184 // Asks the PeerConnection factory to create a Local VideoTrack object with 185 // Asks the PeerConnection factory to create a Local VideoTrack object with
185 // the video source using |capturer|. 186 // the video source using |capturer|.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 talk_base::Thread* signaling_thread_; 235 talk_base::Thread* signaling_thread_;
235 talk_base::Thread* worker_thread_; 236 talk_base::Thread* worker_thread_;
236 base::Thread chrome_worker_thread_; 237 base::Thread chrome_worker_thread_;
237 238
238 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory); 239 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory);
239 }; 240 };
240 241
241 } // namespace content 242 } // namespace content
242 243
243 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ 244 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | content/renderer/media/media_stream_dependency_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698