| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |