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

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: Addressed the last round. 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
« 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 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> GetWebRtcWorkerThread() const;
135
134 protected: 136 protected:
135 // Asks the PeerConnection factory to create a Local Audio Source. 137 // Asks the PeerConnection factory to create a Local Audio Source.
136 virtual scoped_refptr<webrtc::AudioSourceInterface> 138 virtual scoped_refptr<webrtc::AudioSourceInterface>
137 CreateLocalAudioSource( 139 CreateLocalAudioSource(
138 const webrtc::MediaConstraintsInterface* constraints); 140 const webrtc::MediaConstraintsInterface* constraints);
139 141
140 // Creates a media::AudioCapturerSource with an implementation that is 142 // Creates a media::AudioCapturerSource with an implementation that is
141 // specific for a WebAudio source. The created WebAudioCapturerSource 143 // specific for a WebAudio source. The created WebAudioCapturerSource
142 // instance will function as audio source instead of the default 144 // instance will function as audio source instead of the default
143 // WebRtcAudioCapturer. 145 // WebRtcAudioCapturer.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 base::Thread chrome_worker_thread_; 209 base::Thread chrome_worker_thread_;
208 210
209 base::File aec_dump_file_; 211 base::File aec_dump_file_;
210 212
211 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory); 213 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory);
212 }; 214 };
213 215
214 } // namespace content 216 } // namespace content
215 217
216 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ 218 #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