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

Unified Diff: content/public/renderer/render_frame.h

Issue 904913003: Plugin Power Saver: Fix implicitly sized and below the fold plugins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/public/renderer/render_frame.h
diff --git a/content/public/renderer/render_frame.h b/content/public/renderer/render_frame.h
index 6b32dd5b8608d7390bade0b3ae9da6b5511f91bc..875e87de5125ab006f31d2d6fd8fd0c7aa745ec8 100644
--- a/content/public/renderer/render_frame.h
+++ b/content/public/renderer/render_frame.h
@@ -120,34 +120,6 @@ class CONTENT_EXPORT RenderFrame : public IPC::Listener,
virtual void RegisterPeripheralPlugin(
const GURL& content_origin,
const base::Closure& unthrottle_callback) = 0;
-
- // Returns true if this plugin should have power saver enabled.
- //
- // Power Saver is enabled for plugin content that are cross-origin and
- // heuristically determined to be not essential to the web page content.
- //
- // Plugin content is defined to be cross-origin when the plugin source's
- // origin differs from the top level frame's origin. For example:
- // - Cross-origin: a.com -> b.com/plugin.swf
- // - Cross-origin: a.com -> b.com/iframe.html -> b.com/plugin.swf
- // - Same-origin: a.com -> b.com/iframe-to-a.html -> a.com/plugin.swf
- //
- // |page_frame_url| is the URL of the frame containing the plugin, which may
- // be different from the URL of the top level document.
- //
- // |poster_image| may be NULL. It is set to the absolute URL of the poster
- // image if it exists and this method returns true. Otherwise, an empty GURL.
- //
- // |cross_origin_main_content| may be NULL. It is set to true if the
- // plugin content is cross-origin but still the "main attraction" of the page.
- virtual bool ShouldThrottleContent(const blink::WebPluginParams& params,
- const GURL& page_frame_url,
- GURL* poster_image,
- bool* cross_origin_main_content) const = 0;
-
- // Whitelists a |content_origin| so its content will never be throttled in
- // this RenderFrame. Whitelist is cleared by top level navigation.
- virtual void WhitelistContentOrigin(const GURL& content_origin) = 0;
#endif
// Returns true if this frame is a FTP directory listing.
« no previous file with comments | « content/public/renderer/plugin_instance_throttler.h ('k') | content/renderer/pepper/pepper_plugin_instance_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698