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

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

Issue 1981113002: MediaVideoStreamTrack should store weak reference to the media source. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/renderer/media/media_stream_video_track.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/media_stream_video_source.h
diff --git a/content/renderer/media/media_stream_video_source.h b/content/renderer/media/media_stream_video_source.h
index 0ad206ae19e3472667a304ecaf7a7f84a7626d9e..550adea207b4f9b2ea94ebc919b6047b7892629a 100644
--- a/content/renderer/media/media_stream_video_source.h
+++ b/content/renderer/media/media_stream_video_source.h
@@ -98,6 +98,10 @@ class CONTENT_EXPORT MediaStreamVideoSource
const media::VideoCaptureFormat* GetCurrentFormat() const;
+ base::WeakPtr<MediaStreamVideoSource> GetWeakPtr() {
+ return weak_factory_.GetWeakPtr();
+ }
+
protected:
void DoStopSource() override;
« no previous file with comments | « no previous file | content/renderer/media/media_stream_video_track.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698