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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
46 MediaStreamVideoSource* source, | 46 MediaStreamVideoSource* source, |
47 const blink::WebMediaConstraints& constraints, | 47 const blink::WebMediaConstraints& constraints, |
48 const MediaStreamVideoSource::ConstraintsCallback& callback, | 48 const MediaStreamVideoSource::ConstraintsCallback& callback, |
49 bool enabled); | 49 bool enabled); |
50 ~MediaStreamVideoTrack() override; | 50 ~MediaStreamVideoTrack() override; |
51 | 51 |
52 // MediaStreamTrack overrides. | 52 // MediaStreamTrack overrides. |
53 void SetEnabled(bool enabled) override; | 53 void SetEnabled(bool enabled) override; |
54 void Stop() override; | 54 void Stop() override; |
55 | 55 |
56 void SetVideoSinkSecured(bool is_secure); | |
miu
2016/04/16 00:05:29
Instead of this separate method, could this bool b
xjz
2016/04/21 23:50:45
Done.
| |
57 | |
56 void OnReadyStateChanged(blink::WebMediaStreamSource::ReadyState state); | 58 void OnReadyStateChanged(blink::WebMediaStreamSource::ReadyState state); |
57 | 59 |
58 const blink::WebMediaConstraints& constraints() const { return constraints_; } | 60 const blink::WebMediaConstraints& constraints() const { return constraints_; } |
59 | 61 |
60 private: | 62 private: |
61 // MediaStreamVideoSink is a friend to allow it to call AddSink() and | 63 // MediaStreamVideoSink is a friend to allow it to call AddSink() and |
62 // RemoveSink(). | 64 // RemoveSink(). |
63 friend class MediaStreamVideoSink; | 65 friend class MediaStreamVideoSink; |
64 FRIEND_TEST_ALL_PREFIXES(MediaStreamRemoteVideoSourceTest, StartTrack); | 66 FRIEND_TEST_ALL_PREFIXES(MediaStreamRemoteVideoSourceTest, StartTrack); |
65 FRIEND_TEST_ALL_PREFIXES(MediaStreamRemoteVideoSourceTest, RemoteTrackStop); | 67 FRIEND_TEST_ALL_PREFIXES(MediaStreamRemoteVideoSourceTest, RemoteTrackStop); |
(...skipping 16 matching lines...) Expand all Loading... | |
82 class FrameDeliverer; | 84 class FrameDeliverer; |
83 const scoped_refptr<FrameDeliverer> frame_deliverer_; | 85 const scoped_refptr<FrameDeliverer> frame_deliverer_; |
84 | 86 |
85 const blink::WebMediaConstraints constraints_; | 87 const blink::WebMediaConstraints constraints_; |
86 | 88 |
87 // Weak ref to the source this tracks is connected to. |source_| is owned | 89 // Weak ref to the source this tracks is connected to. |source_| is owned |
88 // by the blink::WebMediaStreamSource and is guaranteed to outlive the | 90 // by the blink::WebMediaStreamSource and is guaranteed to outlive the |
89 // track. | 91 // track. |
90 MediaStreamVideoSource* source_; | 92 MediaStreamVideoSource* source_; |
91 | 93 |
94 // Video capturing link is secure if all connected video sink are secure. | |
95 bool video_capturing_link_secured_; | |
96 | |
92 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoTrack); | 97 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoTrack); |
93 }; | 98 }; |
94 | 99 |
95 } // namespace content | 100 } // namespace content |
96 | 101 |
97 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_TRACK_H_ | 102 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_TRACK_H_ |
OLD | NEW |