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

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

Issue 83023005: Add VideoTrackSink interface to content/public (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge error 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 174
175 // Returns true if |source| exists in |user_media_requests_| 175 // Returns true if |source| exists in |user_media_requests_|
176 bool FindSourceInRequests(const blink::WebMediaStreamSource& source) const; 176 bool FindSourceInRequests(const blink::WebMediaStreamSource& source) const;
177 177
178 void StopLocalSource(const blink::WebMediaStreamSource& source, 178 void StopLocalSource(const blink::WebMediaStreamSource& source,
179 bool notify_dispatcher); 179 bool notify_dispatcher);
180 // Stops all local sources that don't exist in exist in 180 // Stops all local sources that don't exist in exist in
181 // |user_media_requests_|. 181 // |user_media_requests_|.
182 void StopUnreferencedSources(bool notify_dispatcher); 182 void StopUnreferencedSources(bool notify_dispatcher);
183 183
184 scoped_refptr<VideoFrameProvider>
185 CreateVideoFrameProvider(
186 webrtc::MediaStreamInterface* stream,
187 const base::Closure& error_cb,
188 const VideoFrameProvider::RepaintCB& repaint_cb);
189 scoped_refptr<WebRtcAudioRenderer> CreateRemoteAudioRenderer( 184 scoped_refptr<WebRtcAudioRenderer> CreateRemoteAudioRenderer(
190 webrtc::MediaStreamInterface* stream); 185 webrtc::MediaStreamInterface* stream);
191 scoped_refptr<WebRtcLocalAudioRenderer> CreateLocalAudioRenderer( 186 scoped_refptr<WebRtcLocalAudioRenderer> CreateLocalAudioRenderer(
192 const blink::WebMediaStreamTrack& audio_track); 187 const blink::WebMediaStreamTrack& audio_track);
193 188
194 // Returns a valid session id if a single capture device is currently open 189 // Returns a valid session id if a single capture device is currently open
195 // (and then the matching session_id), otherwise -1. 190 // (and then the matching session_id), otherwise -1.
196 // This is used to pass on a session id to a webrtc audio renderer (either 191 // 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 192 // local or remote), so that audio will be rendered to a matching output
198 // device, should one exist. 193 // device, should one exist.
(...skipping 13 matching lines...) Expand all
212 UserMediaRequests user_media_requests_; 207 UserMediaRequests user_media_requests_;
213 208
214 LocalStreamSources local_sources_; 209 LocalStreamSources local_sources_;
215 210
216 DISALLOW_COPY_AND_ASSIGN(MediaStreamImpl); 211 DISALLOW_COPY_AND_ASSIGN(MediaStreamImpl);
217 }; 212 };
218 213
219 } // namespace content 214 } // namespace content
220 215
221 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_IMPL_H_ 216 #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