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

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

Issue 282523003: Deliver video frames on libjingle worker thread to WebRtcVideoCapturerAdapter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 int sdp_mline_index, 124 int sdp_mline_index,
125 const std::string& sdp); 125 const std::string& sdp);
126 126
127 WebRtcAudioDeviceImpl* GetWebRtcAudioDevice(); 127 WebRtcAudioDeviceImpl* GetWebRtcAudioDevice();
128 128
129 static void AddNativeAudioTrackToBlinkTrack( 129 static void AddNativeAudioTrackToBlinkTrack(
130 webrtc::MediaStreamTrackInterface* native_track, 130 webrtc::MediaStreamTrackInterface* native_track,
131 const blink::WebMediaStreamTrack& webkit_track, 131 const blink::WebMediaStreamTrack& webkit_track,
132 bool is_local_track); 132 bool is_local_track);
133 133
134 scoped_refptr<base::MessageLoopProxy> worker_thread_proxy() {
tommi (sloooow) - chröme 2014/05/12 14:20:41 Can we call this GetWebRtcWorkerThread() and move
perkj_chrome 2014/05/12 15:39:51 Done.
135 return chrome_worker_thread_.message_loop_proxy();
136 }
137
134 protected: 138 protected:
135 // Asks the PeerConnection factory to create a Local Audio Source. 139 // Asks the PeerConnection factory to create a Local Audio Source.
136 virtual scoped_refptr<webrtc::AudioSourceInterface> 140 virtual scoped_refptr<webrtc::AudioSourceInterface>
137 CreateLocalAudioSource( 141 CreateLocalAudioSource(
138 const webrtc::MediaConstraintsInterface* constraints); 142 const webrtc::MediaConstraintsInterface* constraints);
139 143
140 // Creates a media::AudioCapturerSource with an implementation that is 144 // Creates a media::AudioCapturerSource with an implementation that is
141 // specific for a WebAudio source. The created WebAudioCapturerSource 145 // specific for a WebAudio source. The created WebAudioCapturerSource
142 // instance will function as audio source instead of the default 146 // instance will function as audio source instead of the default
143 // WebRtcAudioCapturer. 147 // WebRtcAudioCapturer.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 base::Thread chrome_worker_thread_; 211 base::Thread chrome_worker_thread_;
208 212
209 base::File aec_dump_file_; 213 base::File aec_dump_file_;
210 214
211 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory); 215 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory);
212 }; 216 };
213 217
214 } // namespace content 218 } // namespace content
215 219
216 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ 220 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698