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

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

Powered by Google App Engine
This is Rietveld 408576698