| 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 1b97006211400b3ff6cf00ad6364dbea9087e442..b962993525c9f2b180557aec68877e35a9200071 100644
|
| --- a/content/renderer/pepper/plugin_power_saver_helper.h
|
| +++ b/content/renderer/pepper/plugin_power_saver_helper.h
|
| @@ -10,17 +10,12 @@
|
|
|
| #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"
|
|
|
| namespace blink {
|
| struct WebPluginParams;
|
| struct WebRect;
|
| -}
|
| -
|
| -namespace gfx {
|
| -class Size;
|
| }
|
|
|
| namespace content {
|
| @@ -45,10 +40,11 @@
|
| // See RenderFrame for documentation.
|
| void RegisterPeripheralPlugin(const url::Origin& content_origin,
|
| const base::Closure& unthrottle_callback);
|
| - RenderFrame::PeripheralContentStatus GetPeripheralContentStatus(
|
| - const url::Origin& main_frame_origin,
|
| - const url::Origin& content_origin,
|
| - const gfx::Size& unobscured_size) const;
|
| + bool ShouldThrottleContent(const url::Origin& main_frame_origin,
|
| + const url::Origin& content_origin,
|
| + int width,
|
| + int height,
|
| + bool* cross_origin_main_content) const;
|
| void WhitelistContentOrigin(const url::Origin& content_origin);
|
|
|
| // RenderFrameObserver implementation.
|
|
|