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

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

Issue 1528653002: Revert of 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
« no previous file with comments | « chrome/renderer/plugins/plugin_preroller.cc ('k') | chrome/renderer/plugins/power_saver_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/plugins/power_saver_info.h
diff --git a/chrome/renderer/plugins/power_saver_info.h b/chrome/renderer/plugins/power_saver_info.h
deleted file mode 100644
index 7da43e696f5160fafa8c2c5dd28b8f94e9a5fe5b..0000000000000000000000000000000000000000
--- a/chrome/renderer/plugins/power_saver_info.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_RENDERER_PLUGINS_POWER_SAVER_INFO_H_
-#define CHROME_RENDERER_PLUGINS_POWER_SAVER_INFO_H_
-
-#include <string>
-
-#include "ui/gfx/geometry/size.h"
-#include "url/gurl.h"
-
-namespace blink {
-struct WebPluginParams;
-}
-
-namespace content {
-class RenderFrame;
-struct WebPluginInfo;
-}
-
-// This contains information specifying the plugin's Power Saver behavior.
-// The default constructor has Plugin Power Saver disabled.
-struct PowerSaverInfo {
- PowerSaverInfo();
-
- // Determines the PowerSaverInfo using the peripheral content heuristic.
- static PowerSaverInfo Get(content::RenderFrame* render_frame,
- bool power_saver_setting_on,
- const blink::WebPluginParams& params,
- const content::WebPluginInfo& plugin_info,
- const GURL& document_url);
-
- // Whether power saver should be enabled.
- bool power_saver_enabled;
-
- // Whether the plugin should be deferred because it is in a background tab.
- bool blocked_for_background_tab;
-
- // 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;
-};
-
-#endif // CHROME_RENDERER_PLUGINS_POWER_SAVER_INFO_H_
« no previous file with comments | « chrome/renderer/plugins/plugin_preroller.cc ('k') | chrome/renderer/plugins/power_saver_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698