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

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

Issue 90743004: Add generic interfaces for the sinks of the media stream audio track (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed the nits. Created 7 years 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_IMPL_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_IMPL_H_ 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 void StopUnreferencedSources(bool notify_dispatcher); 182 void StopUnreferencedSources(bool notify_dispatcher);
183 183
184 scoped_refptr<VideoFrameProvider> 184 scoped_refptr<VideoFrameProvider>
185 CreateVideoFrameProvider( 185 CreateVideoFrameProvider(
186 webrtc::MediaStreamInterface* stream, 186 webrtc::MediaStreamInterface* stream,
187 const base::Closure& error_cb, 187 const base::Closure& error_cb,
188 const VideoFrameProvider::RepaintCB& repaint_cb); 188 const VideoFrameProvider::RepaintCB& repaint_cb);
189 scoped_refptr<WebRtcAudioRenderer> CreateRemoteAudioRenderer( 189 scoped_refptr<WebRtcAudioRenderer> CreateRemoteAudioRenderer(
190 webrtc::MediaStreamInterface* stream); 190 webrtc::MediaStreamInterface* stream);
191 scoped_refptr<WebRtcLocalAudioRenderer> CreateLocalAudioRenderer( 191 scoped_refptr<WebRtcLocalAudioRenderer> CreateLocalAudioRenderer(
192 webrtc::MediaStreamInterface* stream); 192 const blink::WebMediaStreamTrack& audio_track);
193 193
194 // Returns a valid session id if a single capture device is currently open 194 // Returns a valid session id if a single capture device is currently open
195 // (and then the matching session_id), otherwise -1. 195 // (and then the matching session_id), otherwise -1.
196 // This is used to pass on a session id to a webrtc audio renderer (either 196 // This is used to pass on a session id to a webrtc audio renderer (either
197 // local or remote), so that audio will be rendered to a matching output 197 // local or remote), so that audio will be rendered to a matching output
198 // device, should one exist. 198 // device, should one exist.
199 // Note that if there are more than one open capture devices the function 199 // Note that if there are more than one open capture devices the function
200 // will not be able to pick an appropriate device and return false. 200 // will not be able to pick an appropriate device and return false.
201 bool GetAuthorizedDeviceInfoForAudioRenderer( 201 bool GetAuthorizedDeviceInfoForAudioRenderer(
202 int* session_id, int* output_sample_rate, int* output_buffer_size); 202 int* session_id, int* output_sample_rate, int* output_buffer_size);
203 203
204 // Weak ref to a MediaStreamDependencyFactory, owned by the RenderThread. 204 // Weak ref to a MediaStreamDependencyFactory, owned by the RenderThread.
205 // It's valid for the lifetime of RenderThread. 205 // It's valid for the lifetime of RenderThread.
206 MediaStreamDependencyFactory* dependency_factory_; 206 MediaStreamDependencyFactory* dependency_factory_;
207 207
208 // media_stream_dispatcher_ is a weak reference, owned by RenderView. It's 208 // media_stream_dispatcher_ is a weak reference, owned by RenderView. It's
209 // valid for the lifetime of RenderView. 209 // valid for the lifetime of RenderView.
210 MediaStreamDispatcher* media_stream_dispatcher_; 210 MediaStreamDispatcher* media_stream_dispatcher_;
211 211
212 UserMediaRequests user_media_requests_; 212 UserMediaRequests user_media_requests_;
213 213
214 LocalStreamSources local_sources_; 214 LocalStreamSources local_sources_;
215 215
216 DISALLOW_COPY_AND_ASSIGN(MediaStreamImpl); 216 DISALLOW_COPY_AND_ASSIGN(MediaStreamImpl);
217 }; 217 };
218 218
219 } // namespace content 219 } // namespace content
220 220
221 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_IMPL_H_ 221 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_dependency_factory.cc ('k') | content/renderer/media/media_stream_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698