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_; |