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

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

Issue 707113002: Plugin Power Saver: Refactor Plugin Instance Throttling code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0190-plugin-power-saver-add-some-umas
Patch Set: 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
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 c056a93bc11f31a6036a50f7fa62519c8a0aaea2..b3e0c90727d379716d2c8a2433cac86f6115f040 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.h
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.h
@@ -687,9 +687,6 @@ class CONTENT_EXPORT PepperPluginInstanceImpl
int pending_host_id,
const ppapi::URLResponseInfoData& data);
- void SetPluginThrottled(bool throttled);
- void DisablePowerSaverByRetroactiveWhitelist();
-
RenderFrameImpl* render_frame_;
base::Closure instance_deleted_callback_;
scoped_refptr<PluginModule> module_;
@@ -713,24 +710,6 @@ class CONTENT_EXPORT PepperPluginInstanceImpl
// Plugin URL.
GURL plugin_url_;
- // Set to true first time plugin is clicked. Used to collect metrics.
- bool has_been_clicked_;
-
- // 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_;
-
- // Fake view data used by the Power Saver feature to throttle plugins.
- const ppapi::ViewData empty_view_data_;
-
// Responsible for turning on throttling if Power Saver is on.
scoped_ptr<PepperPluginInstanceThrottler> throttler_;

Powered by Google App Engine
This is Rietveld 408576698