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

Unified Diff: content/public/browser/content_browser_client.h

Issue 871443004: Expose the visibility state of a frame to the browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rfh_isfocused
Patch Set: rebase Created 5 years, 11 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/public/browser/content_browser_client.h
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index 39acf3dabc301a66708d68280659d07912da33d5..d97a87b2d427508961d2973e1f2cbb606a7a872c 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -28,6 +28,7 @@
#include "net/url_request/url_request_interceptor.h"
#include "net/url_request/url_request_job_factory.h"
#include "storage/browser/fileapi/file_system_context.h"
+#include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
#include "ui/base/window_open_disposition.h"
#if defined(OS_POSIX) && !defined(OS_MACOSX)
@@ -595,6 +596,12 @@ class CONTENT_EXPORT ContentBrowserClient {
virtual void GetAdditionalNavigatorConnectServices(
const scoped_refptr<NavigatorConnectContext>& context) {}
+ // Allows to override the visibility state of a RenderFrameHost.
+ // |visibility_state| should not be null. It will only be set if needed.
+ virtual void OverridePageVisibilityState(
+ RenderFrameHost* render_frame_host,
+ blink::WebPageVisibilityState* visibility_state) {}
+
#if defined(OS_POSIX) && !defined(OS_MACOSX)
// Populates |mappings| with all files that need to be mapped before launching
// a child process.
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl_browsertest.cc ('k') | content/public/browser/render_frame_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698