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

Unified Diff: components/plugins/renderer/loadable_plugin_placeholder.h

Issue 863813002: Plugin Power Saver: Make Unthrottle metric collection more consistent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: components/plugins/renderer/loadable_plugin_placeholder.h
diff --git a/components/plugins/renderer/loadable_plugin_placeholder.h b/components/plugins/renderer/loadable_plugin_placeholder.h
index 5f3748f8c2296058407b1d9fcb76b34b19fa175f..402fdc7e4d185b976f4d1fe19239e21284e505dc 100644
--- a/components/plugins/renderer/loadable_plugin_placeholder.h
+++ b/components/plugins/renderer/loadable_plugin_placeholder.h
@@ -44,7 +44,8 @@ class LoadablePluginPlaceholder : public PluginPlaceholder {
~LoadablePluginPlaceholder() override;
#if defined(ENABLE_PLUGINS)
- void DisablePowerSaverForInstance();
+ void DisablePowerSaverForInstance(
+ content::PluginInstanceThrottler::PowerSaverUnthrottleMethod method);
#endif
void OnLoadBlockedPlugins(const std::string& identifier);
@@ -111,6 +112,9 @@ class LoadablePluginPlaceholder : public PluginPlaceholder {
bool allow_loading_;
+ // True if the placeholder was replaced with the real plugin.
+ bool placeholder_was_replaced_;
+
bool hidden_;
bool finished_loading_;
std::string identifier_;
« no previous file with comments | « chrome/renderer/plugins/chrome_plugin_placeholder.cc ('k') | components/plugins/renderer/loadable_plugin_placeholder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698