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

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

Issue 1421693002: Plugin Power Saver: Do not always throttle plugins with posters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0025-pps-poster-pixel-tests
Patch Set: Created 5 years, 2 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
« no previous file with comments | « components/plugins/renderer/loadable_plugin_placeholder.cc ('k') | content/public/renderer/render_frame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/renderer/plugin_instance_throttler.h
diff --git a/content/public/renderer/plugin_instance_throttler.h b/content/public/renderer/plugin_instance_throttler.h
index d8afb4a9b6df144f67619ab7a8b3e6fb2fad4782..bd2b9ef307693b098a24ea73fb590daa60039615 100644
--- a/content/public/renderer/plugin_instance_throttler.h
+++ b/content/public/renderer/plugin_instance_throttler.h
@@ -47,6 +47,7 @@ class CONTENT_EXPORT PluginInstanceThrottler {
// How the throttled power saver is unthrottled, if ever.
// These numeric values are used in UMA logs; do not change them.
enum PowerSaverUnthrottleMethod {
+ UNTHROTTLE_METHOD_DO_NOT_RECORD = -1, // Sentinel value to skip recording.
UNTHROTTLE_METHOD_NEVER = 0,
UNTHROTTLE_METHOD_BY_CLICK = 1,
UNTHROTTLE_METHOD_BY_WHITELIST = 2,
@@ -74,10 +75,6 @@ class CONTENT_EXPORT PluginInstanceThrottler {
static void RecordUnthrottleMethodMetric(PowerSaverUnthrottleMethod method);
- // Returns true if content is considered "large", and thus essential.
- // |width| and |height| are zoom and device scale independent logical pixels.
- static bool IsLargeContent(int width, int height);
-
virtual ~PluginInstanceThrottler() {}
virtual void AddObserver(Observer* observer) = 0;
« no previous file with comments | « components/plugins/renderer/loadable_plugin_placeholder.cc ('k') | content/public/renderer/render_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698