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 53ef5e11e484aecb0305ab6f398a6ae09d10f9d8..b2a3f2e4357fa90d74c84cac0cff2fff2897e193 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 |
@@ -95,6 +98,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_; |
@@ -107,6 +113,7 @@ class LoadablePluginPlaceholder : public PluginPlaceholder { |
// Plugin may be automatically be loaded when the page is displayed. |
bool is_blocked_for_prerendering_; |
+#if defined(ENABLE_PLUGINS) |
// True if the plugin load was deferred due to a Power Saver poster. |
bool is_blocked_for_power_saver_poster_; |
@@ -116,6 +123,7 @@ class LoadablePluginPlaceholder : public PluginPlaceholder { |
// When we load, uses this premade plugin instead of creating a new one. |
content::PluginInstanceThrottler* premade_throttler_; |
+#endif |
bool allow_loading_; |