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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
44 // Constructor for video tracks. | 44 // Constructor for video tracks. |
45 MediaStreamVideoTrack( | 45 MediaStreamVideoTrack( |
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 void SetEnabled(bool enabled) override; | 52 void SetEnabled(bool enabled) override; |
53 | 53 |
54 // Requests the source a send a frame "soon" (e.g., to resolve picture loss or | |
xjz
2016/04/01 19:10:04
s/a send/send
miu
2016/04/01 23:24:27
Done.
| |
55 // quality issues). | |
56 void RequestRefreshFrame(); | |
57 | |
54 void Stop() override; | 58 void Stop() override; |
55 | 59 |
56 void OnReadyStateChanged(blink::WebMediaStreamSource::ReadyState state); | 60 void OnReadyStateChanged(blink::WebMediaStreamSource::ReadyState state); |
57 | 61 |
58 const blink::WebMediaConstraints& constraints() const { return constraints_; } | 62 const blink::WebMediaConstraints& constraints() const { return constraints_; } |
59 | 63 |
60 private: | 64 private: |
61 // MediaStreamVideoSink is a friend to allow it to call AddSink() and | 65 // MediaStreamVideoSink is a friend to allow it to call AddSink() and |
62 // RemoveSink(). | 66 // RemoveSink(). |
63 friend class MediaStreamVideoSink; | 67 friend class MediaStreamVideoSink; |
(...skipping 24 matching lines...) Expand all Loading... | |
88 // by the blink::WebMediaStreamSource and is guaranteed to outlive the | 92 // by the blink::WebMediaStreamSource and is guaranteed to outlive the |
89 // track. | 93 // track. |
90 MediaStreamVideoSource* source_; | 94 MediaStreamVideoSource* source_; |
91 | 95 |
92 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoTrack); | 96 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoTrack); |
93 }; | 97 }; |
94 | 98 |
95 } // namespace content | 99 } // namespace content |
96 | 100 |
97 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_TRACK_H_ | 101 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_TRACK_H_ |
OLD | NEW |