| Index: content/renderer/pepper/plugin_power_saver_helper.h
|
| diff --git a/content/renderer/pepper/plugin_power_saver_helper.h b/content/renderer/pepper/plugin_power_saver_helper.h
|
| index b962993525c9f2b180557aec68877e35a9200071..1b97006211400b3ff6cf00ad6364dbea9087e442 100644
|
| --- a/content/renderer/pepper/plugin_power_saver_helper.h
|
| +++ b/content/renderer/pepper/plugin_power_saver_helper.h
|
| @@ -10,6 +10,7 @@
|
|
|
| #include "base/callback.h"
|
| #include "content/common/content_export.h"
|
| +#include "content/public/renderer/render_frame.h"
|
| #include "content/public/renderer/render_frame_observer.h"
|
| #include "url/origin.h"
|
|
|
| @@ -18,6 +19,10 @@ struct WebPluginParams;
|
| struct WebRect;
|
| }
|
|
|
| +namespace gfx {
|
| +class Size;
|
| +}
|
| +
|
| namespace content {
|
|
|
| class CONTENT_EXPORT PluginPowerSaverHelper : public RenderFrameObserver {
|
| @@ -40,11 +45,10 @@ class CONTENT_EXPORT PluginPowerSaverHelper : public RenderFrameObserver {
|
| // See RenderFrame for documentation.
|
| void RegisterPeripheralPlugin(const url::Origin& content_origin,
|
| const base::Closure& unthrottle_callback);
|
| - bool ShouldThrottleContent(const url::Origin& main_frame_origin,
|
| - const url::Origin& content_origin,
|
| - int width,
|
| - int height,
|
| - bool* cross_origin_main_content) const;
|
| + RenderFrame::PeripheralContentStatus GetPeripheralContentStatus(
|
| + const url::Origin& main_frame_origin,
|
| + const url::Origin& content_origin,
|
| + const gfx::Size& unobscured_size) const;
|
| void WhitelistContentOrigin(const url::Origin& content_origin);
|
|
|
| // RenderFrameObserver implementation.
|
|
|