Index: third_party/WebKit/Source/core/html/HTMLVideoElement.h |
diff --git a/third_party/WebKit/Source/core/html/HTMLVideoElement.h b/third_party/WebKit/Source/core/html/HTMLVideoElement.h |
index bc7e7faea680dbf4a3e4d82c1843dac4ecfdaab3..c1d1372402ed0e58effb26098ef1fa5eadbe6cef 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLVideoElement.h |
+++ b/third_party/WebKit/Source/core/html/HTMLVideoElement.h |
@@ -43,6 +43,7 @@ namespace blink { |
class ExceptionState; |
class ImageBitmapOptions; |
class MediaCustomControlsFullscreenDetector; |
+class MediaRemotingInterstitial; |
class CORE_EXPORT HTMLVideoElement final : public HTMLMediaElement, |
public CanvasImageSource, |
@@ -53,6 +54,8 @@ class CORE_EXPORT HTMLVideoElement final : public HTMLMediaElement, |
static HTMLVideoElement* Create(Document&); |
DECLARE_VIRTUAL_TRACE(); |
+ enum MediaRemotingStatus { NotStarted, Started, Disabled }; |
+ |
// Node override. |
Node::InsertionNotificationRequest InsertedInto(ContainerNode*) override; |
void RemovedFrom(ContainerNode*) override; |
@@ -130,6 +133,11 @@ class CORE_EXPORT HTMLVideoElement final : public HTMLMediaElement, |
bool IsPersistent() const; |
+ MediaRemotingStatus GetMediaRemotingStatus() const { |
+ return media_remoting_status_; |
+ } |
+ void DisableMediaRemoting(); |
+ |
private: |
friend class MediaCustomControlsFullscreenDetectorTest; |
friend class HTMLMediaElementEventListenersTest; |
@@ -154,11 +162,17 @@ class CORE_EXPORT HTMLVideoElement final : public HTMLMediaElement, |
void UpdateDisplayState() override; |
void DidMoveToNewDocument(Document& old_document) override; |
void SetDisplayMode(DisplayMode) override; |
+ void MediaRemotingStarted() final; |
+ void MediaRemotingStopped() final; |
Member<HTMLImageLoader> image_loader_; |
Member<MediaCustomControlsFullscreenDetector> |
custom_controls_fullscreen_detector_; |
+ MediaRemotingStatus media_remoting_status_; |
+ |
+ Member<MediaRemotingInterstitial> remoting_interstitial_; |
+ |
AtomicString default_poster_url_; |
bool is_persistent_ = false; |