| Index: content/renderer/pepper/pepper_webplugin_impl.h
|
| diff --git a/content/renderer/pepper/pepper_webplugin_impl.h b/content/renderer/pepper/pepper_webplugin_impl.h
|
| index 2c6eea51b6b6fb4615f3b4294a7415b82bcb553a..cdc49d98f3c946a8c055ebdac756371fb64a48ef 100644
|
| --- a/content/renderer/pepper/pepper_webplugin_impl.h
|
| +++ b/content/renderer/pepper/pepper_webplugin_impl.h
|
| @@ -11,7 +11,6 @@
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/memory/weak_ptr.h"
|
| #include "base/sequenced_task_runner_helpers.h"
|
| -#include "content/public/renderer/render_frame.h"
|
| #include "ppapi/c/pp_var.h"
|
| #include "third_party/WebKit/public/web/WebPlugin.h"
|
| #include "ui/gfx/geometry/rect.h"
|
| @@ -26,6 +25,7 @@ struct WebPrintParams;
|
| namespace content {
|
|
|
| class PepperPluginInstanceImpl;
|
| +class PluginInstanceThrottlerImpl;
|
| class PluginModule;
|
| class PPB_URLLoader_Impl;
|
| class RenderFrameImpl;
|
| @@ -35,7 +35,7 @@ class PepperWebPluginImpl : public blink::WebPlugin {
|
| PepperWebPluginImpl(PluginModule* module,
|
| const blink::WebPluginParams& params,
|
| RenderFrameImpl* render_frame,
|
| - RenderFrame::PluginPowerSaverMode power_saver_mode);
|
| + scoped_ptr<PluginInstanceThrottlerImpl> throttler);
|
|
|
| PepperPluginInstanceImpl* instance() { return instance_.get(); }
|
|
|
| @@ -99,7 +99,7 @@ class PepperWebPluginImpl : public blink::WebPlugin {
|
| // True if the instance represents the entire document in a frame instead of
|
| // being an embedded resource.
|
| bool full_frame_;
|
| - RenderFrame::PluginPowerSaverMode power_saver_mode_;
|
| + scoped_ptr<PluginInstanceThrottlerImpl> throttler_;
|
| scoped_refptr<PepperPluginInstanceImpl> instance_;
|
| gfx::Rect plugin_rect_;
|
| PP_Var instance_object_;
|
|
|