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

Unified Diff: chrome/renderer/plugins/chrome_plugin_placeholder.h

Issue 1497623002: Plugin Power Saver: Improve Poster behavior for essential plugins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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: chrome/renderer/plugins/chrome_plugin_placeholder.h
diff --git a/chrome/renderer/plugins/chrome_plugin_placeholder.h b/chrome/renderer/plugins/chrome_plugin_placeholder.h
index 85d49b7f3fb923f28b15f8415d052c07df67f945..0236320be4a6971a60d4b074ddb0c934b562c5e7 100644
--- a/chrome/renderer/plugins/chrome_plugin_placeholder.h
+++ b/chrome/renderer/plugins/chrome_plugin_placeholder.h
@@ -5,29 +5,13 @@
#ifndef CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_
#define CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_
+#include "chrome/renderer/plugins/power_saver_info.h"
#include "components/plugins/renderer/loadable_plugin_placeholder.h"
#include "content/public/renderer/context_menu_client.h"
#include "content/public/renderer/render_process_observer.h"
-namespace gfx {
-class Size;
-}
-
enum class ChromeViewHostMsg_GetPluginInfo_Status;
-// This contains information specifying the poster image of plugin placeholders.
-// The default constructor specifies no poster image.
-struct PlaceholderPosterInfo {
- // The poster image specified in image 'srcset' attribute format.
- std::string poster_attribute;
-
- // Used to resolve relative paths in |poster_attribute|.
- GURL base_url;
-
- // Specify this to provide partially obscured plugins a centered poster image.
- gfx::Size custom_poster_size;
-};
-
class ChromePluginPlaceholder final
: public plugins::LoadablePluginPlaceholder,
public content::RenderProcessObserver,
@@ -45,7 +29,7 @@ class ChromePluginPlaceholder final
const base::string16& name,
int resource_id,
const base::string16& message,
- const PlaceholderPosterInfo& poster_info);
+ const PowerSaverInfo& power_saver_info);
// Creates a new WebViewPlugin with a MissingPlugin as a delegate.
static ChromePluginPlaceholder* CreateLoadableMissingPlugin(
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | chrome/renderer/plugins/chrome_plugin_placeholder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698