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

Unified Diff: content/renderer/media/media_stream_source.h

Issue 2339193002: Wip - cl for implemening VideoTrackSource::ApplyConstraints(constraints, VideoTrack) and adopt safe…
Patch Set: Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/media/media_stream_center.cc ('k') | content/renderer/media/media_stream_video_source.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/media_stream_source.h
diff --git a/content/renderer/media/media_stream_source.h b/content/renderer/media/media_stream_source.h
index 23b896ae88efaa9e5e8a190dcbb405e33c72b48b..b9bd9f095f59ca4b2822522297d5dd78e7d8b69d 100644
--- a/content/renderer/media/media_stream_source.h
+++ b/content/renderer/media/media_stream_source.h
@@ -60,6 +60,12 @@ class CONTENT_EXPORT MediaStreamSource
// in the future.
void ResetSourceStoppedCallback();
+ // Connects this source to the given |track|, creating the appropriate
+ // implementation of the content::MediaStreamTrack interface, which
+ // becomes associated with and owned by |track|. Returns true if the source
+ // was successfully started.
+ virtual bool ConnectToTrack(const blink::WebMediaStreamTrack& track) = 0; // { return false; }
+
protected:
// Called when StopSource is called. It allows derived classes to implement
// its own Stop method.
« no previous file with comments | « content/renderer/media/media_stream_center.cc ('k') | content/renderer/media/media_stream_video_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698