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

Unified Diff: content/renderer/pepper/pepper_plugin_instance_impl.h

Issue 703453004: Plugin Power Saver: Add some UMAs to test plugins in wild. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: try reupload Created 6 years, 1 month 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 | « no previous file | content/renderer/pepper/pepper_plugin_instance_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/pepper_plugin_instance_impl.h
diff --git a/content/renderer/pepper/pepper_plugin_instance_impl.h b/content/renderer/pepper/pepper_plugin_instance_impl.h
index 5389a8be4a323b4c32c8581f978d5751e6522aa6..9f55084609a3c09e9bd890eb4ae62f10588eb5be 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.h
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.h
@@ -688,7 +688,7 @@ class CONTENT_EXPORT PepperPluginInstanceImpl
const ppapi::URLResponseInfoData& data);
void SetPluginThrottled(bool throttled);
- void DisablePowerSaverAndUnthrottle();
+ void DisablePowerSaverByRetroactiveWhitelist();
RenderFrameImpl* render_frame_;
base::Closure instance_deleted_callback_;
@@ -714,8 +714,14 @@ class CONTENT_EXPORT PepperPluginInstanceImpl
GURL plugin_url_;
// Indicates whether this plugin may be throttled to reduce power consumption.
+ // |power_saver_enabled_| implies |is_peripheral_content_|.
bool power_saver_enabled_;
+ // Indicates whether this plugin was found to be peripheral content.
+ // This is separately tracked from |power_saver_enabled_| to collect UMAs.
+ // Always true if |power_saver_enabled_| is true.
+ bool is_peripheral_content_;
+
// Indicates if the plugin is currently throttled.
bool plugin_throttled_;
« no previous file with comments | « no previous file | content/renderer/pepper/pepper_plugin_instance_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698