| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 // Constructor for video tracks. | 45 // Constructor for video tracks. |
| 46 MediaStreamVideoTrack( | 46 MediaStreamVideoTrack( |
| 47 MediaStreamVideoSource* source, | 47 MediaStreamVideoSource* source, |
| 48 const blink::WebMediaConstraints& constraints, | 48 const blink::WebMediaConstraints& constraints, |
| 49 const MediaStreamVideoSource::ConstraintsCallback& callback, | 49 const MediaStreamVideoSource::ConstraintsCallback& callback, |
| 50 bool enabled); | 50 bool enabled); |
| 51 ~MediaStreamVideoTrack() override; | 51 ~MediaStreamVideoTrack() override; |
| 52 | 52 |
| 53 // MediaStreamTrack overrides. | 53 // MediaStreamTrack overrides. |
| 54 void SetEnabled(bool enabled) override; | 54 void SetEnabled(bool enabled) override; |
| 55 void SetContentHint( |
| 56 blink::WebMediaStreamTrack::ContentHintType content_hint) override; |
| 55 void Stop() override; | 57 void Stop() override; |
| 56 void getSettings(blink::WebMediaStreamTrack::Settings& settings) override; | 58 void getSettings(blink::WebMediaStreamTrack::Settings& settings) override; |
| 57 | 59 |
| 58 void OnReadyStateChanged(blink::WebMediaStreamSource::ReadyState state); | 60 void OnReadyStateChanged(blink::WebMediaStreamSource::ReadyState state); |
| 59 | 61 |
| 60 const blink::WebMediaConstraints& constraints() const { return constraints_; } | 62 const blink::WebMediaConstraints& constraints() const { return constraints_; } |
| 61 | 63 |
| 62 private: | 64 private: |
| 63 // MediaStreamVideoSink is a friend to allow it to call AddSink() and | 65 // MediaStreamVideoSink is a friend to allow it to call AddSink() and |
| 64 // RemoveSink(). | 66 // RemoveSink(). |
| (...skipping 27 matching lines...) Expand all Loading... |
| 92 | 94 |
| 93 // This is used for tracking if all connected video sinks are secure. | 95 // This is used for tracking if all connected video sinks are secure. |
| 94 SecureDisplayLinkTracker<MediaStreamVideoSink> secure_tracker_; | 96 SecureDisplayLinkTracker<MediaStreamVideoSink> secure_tracker_; |
| 95 | 97 |
| 96 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoTrack); | 98 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoTrack); |
| 97 }; | 99 }; |
| 98 | 100 |
| 99 } // namespace content | 101 } // namespace content |
| 100 | 102 |
| 101 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_TRACK_H_ | 103 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_TRACK_H_ |
| OLD | NEW |