Chromium Code Reviews| Index: content/renderer/pepper/plugin_instance_throttler_impl.h |
| diff --git a/content/renderer/pepper/plugin_instance_throttler_impl.h b/content/renderer/pepper/plugin_instance_throttler_impl.h |
| index b223cd26b613c65c5de327ad5676ec3b2e98e553..cb3701fa4f30290b3c4742be358c771a6d0b60aa 100644 |
| --- a/content/renderer/pepper/plugin_instance_throttler_impl.h |
| +++ b/content/renderer/pepper/plugin_instance_throttler_impl.h |
| @@ -11,6 +11,7 @@ |
| #include "content/common/content_export.h" |
| #include "content/public/renderer/plugin_instance_throttler.h" |
| #include "ppapi/shared_impl/ppb_view_shared.h" |
| +#include "ui/gfx/geometry/size.h" |
| namespace blink { |
| class WebInputEvent; |
| @@ -36,6 +37,7 @@ class CONTENT_EXPORT PluginInstanceThrottlerImpl |
| void MarkPluginEssential(PowerSaverUnthrottleMethod method) override; |
| void SetHiddenForPlaceholder(bool hidden) override; |
| blink::WebPlugin* GetWebPlugin() const override; |
| + const gfx::Size& GetSize() const override; |
| void SetWebPlugin(blink::WebPlugin* web_plugin); |
| @@ -52,7 +54,7 @@ class CONTENT_EXPORT PluginInstanceThrottlerImpl |
| void Initialize(RenderFrameImpl* frame, |
| const GURL& content_origin, |
| const std::string& plugin_module_name, |
| - const blink::WebRect& bounds); |
| + const gfx::Size& size); |
| // Called when the plugin flushes it's graphics context. Supplies the |
| // throttler with a candidate to use as the representative keyframe. |
| @@ -94,6 +96,9 @@ class CONTENT_EXPORT PluginInstanceThrottlerImpl |
| // Number of frames we've examined to find a keyframe. |
| int frames_examined_; |
| + // Plugin dimensions as of initialization. |
| + gfx::Size initialized_size_; |
|
Lei Zhang
2015/03/18 00:48:12
const?
tommycli
2015/03/19 22:10:13
Can not, since it's assigned in Initialize, right?
|
| + |
| ObserverList<Observer> observer_list_; |
| base::WeakPtrFactory<PluginInstanceThrottlerImpl> weak_factory_; |