Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1086)

Unified Diff: content/browser/web_contents/web_contents_impl.h

Issue 2692903002: Don't show media controls when there is a persistent video. (Closed)
Patch Set: rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/web_contents_impl.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index a88e34b8ef5da81a1023f346a20218e1bc04520b..5e5a641d725fb855cdd6e9d9ee6bb82ca383fb16 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -572,6 +572,7 @@ class CONTENT_EXPORT WebContentsImpl
bool IsOverridingUserAgent() override;
bool IsJavaScriptDialogShowing() const override;
bool HideDownloadUI() const override;
+ bool HasPersistentVideo() const override;
// NavigatorDelegate ---------------------------------------------------------
@@ -791,6 +792,9 @@ class CONTENT_EXPORT WebContentsImpl
void IncrementBluetoothConnectedDeviceCount();
void DecrementBluetoothConnectedDeviceCount();
+ // Called when the WebContents gains or loses a persistent video.
+ void SetHasPersistentVideo(bool value);
+
#if defined(OS_ANDROID)
// Called by FindRequestManager when all of the find match rects are in.
void NotifyFindMatchRectsReply(int version,
@@ -1172,6 +1176,10 @@ class CONTENT_EXPORT WebContentsImpl
// certificate via --allow-insecure-localhost.
void ShowInsecureLocalhostWarningIfNeeded();
+ // Notify this WebContents that the preferences have changed. This will send
+ // an IPC to all the renderer process associated with this WebContents.
+ void NotifyPreferencesChanged();
+
// Data for core operation ---------------------------------------------------
// Delegate for notifying our owner about stuff. Not owned by us.
@@ -1498,6 +1506,8 @@ class CONTENT_EXPORT WebContentsImpl
int currently_playing_video_count_ = 0;
+ bool has_persistent_video_ = false;
+
base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_;
base::WeakPtrFactory<WebContentsImpl> weak_factory_;
« no previous file with comments | « content/browser/web_contents/web_contents_android.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698