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

Side by Side Diff: content/renderer/media/media_stream_video_track.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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_VIDEO_TRACK_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_TRACK_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_TRACK_H_ 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_TRACK_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 std::vector<MediaStreamVideoSink*> sinks_; 80 std::vector<MediaStreamVideoSink*> sinks_;
81 81
82 // |FrameDeliverer| is an internal helper object used for delivering video 82 // |FrameDeliverer| is an internal helper object used for delivering video
83 // frames on the IO-thread using callbacks to all registered tracks. 83 // frames on the IO-thread using callbacks to all registered tracks.
84 class FrameDeliverer; 84 class FrameDeliverer;
85 const scoped_refptr<FrameDeliverer> frame_deliverer_; 85 const scoped_refptr<FrameDeliverer> frame_deliverer_;
86 86
87 const blink::WebMediaConstraints constraints_; 87 const blink::WebMediaConstraints constraints_;
88 88
89 // Weak ref to the source this tracks is connected to. |source_| is owned 89 // Weak ref to the source this tracks is connected to.
90 // by the blink::WebMediaStreamSource and is guaranteed to outlive the 90 base::WeakPtr<MediaStreamVideoSource> source_;
91 // track.
92 MediaStreamVideoSource* source_;
93 91
94 // This is used for tracking if all connected video sinks are secure. 92 // This is used for tracking if all connected video sinks are secure.
95 SecureDisplayLinkTracker<MediaStreamVideoSink> secure_tracker_; 93 SecureDisplayLinkTracker<MediaStreamVideoSink> secure_tracker_;
96 94
97 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoTrack); 95 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoTrack);
98 }; 96 };
99 97
100 } // namespace content 98 } // namespace content
101 99
102 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_TRACK_H_ 100 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_TRACK_H_
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_video_source.h ('k') | content/renderer/media/media_stream_video_track.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698