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

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

Issue 1114623002: Plugin Power Saver: Make PPS work well with prerendered pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 841115b8884443913f183a332f18a82c76423936..4ddbaacaf3b74b0f64933fb91d727fea0904bd30 100644
--- a/components/plugins/renderer/loadable_plugin_placeholder.h
+++ b/components/plugins/renderer/loadable_plugin_placeholder.h
@@ -24,6 +24,8 @@ class LoadablePluginPlaceholder : public PluginPlaceholder {
}
#if defined(ENABLE_PLUGINS)
+ bool power_saver_enabled() const { return power_saver_enabled_; }
+
void set_power_saver_enabled(bool power_saver_enabled) {
power_saver_enabled_ = power_saver_enabled;
}
@@ -58,6 +60,7 @@ class LoadablePluginPlaceholder : public PluginPlaceholder {
void SetPluginInfo(const content::WebPluginInfo& plugin_info);
const content::WebPluginInfo& GetPluginInfo() const;
void SetIdentifier(const std::string& identifier);
+ const std::string& GetIdentifier() const;
bool LoadingAllowed() const { return allow_loading_; }
// Replace this placeholder with a different plugin (which could be
@@ -93,6 +96,9 @@ class LoadablePluginPlaceholder : public PluginPlaceholder {
bool LoadingBlocked() const;
+ // Plugin creation is embedder-specific.
+ virtual blink::WebPlugin* CreatePlugin() = 0;
+
content::WebPluginInfo plugin_info_;
base::string16 message_;

Powered by Google App Engine
This is Rietveld 408576698