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

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

Issue 2011163004: MediaVideoStreamTrack should store weak reference to the media source. Since MediaVideoStreamSource… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
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 e2e24f008c99873e770739be60062d94cd95a69f..d3f4e2c39730a0c8f8b8e0ee4266c51ab4725dab 100644
--- a/content/renderer/media/media_stream_video_source.h
+++ b/content/renderer/media/media_stream_video_source.h
@@ -92,6 +92,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