| Index: content/public/renderer/plugin_instance_throttler.h
|
| diff --git a/content/public/renderer/plugin_instance_throttler.h b/content/public/renderer/plugin_instance_throttler.h
|
| index 025ccbd8a8a410610321c5d1ac2ee03e4e30df66..21ac9c2a96cb427ac0584ea836e818498c46ceaa 100644
|
| --- a/content/public/renderer/plugin_instance_throttler.h
|
| +++ b/content/public/renderer/plugin_instance_throttler.h
|
| @@ -52,6 +52,7 @@ class CONTENT_EXPORT PluginInstanceThrottler {
|
| UNTHROTTLE_METHOD_BY_CLICK = 1,
|
| UNTHROTTLE_METHOD_BY_WHITELIST = 2,
|
| UNTHROTTLE_METHOD_BY_AUDIO = 3,
|
| + UNTHROTTLE_METHOD_BY_SIZE_CHANGE = 4,
|
| UNTHROTTLE_METHOD_NUM_ITEMS
|
| };
|
|
|
| @@ -74,6 +75,9 @@ class CONTENT_EXPORT PluginInstanceThrottler {
|
|
|
| static void RecordUnthrottleMethodMetric(PowerSaverUnthrottleMethod method);
|
|
|
| + // Returns true if content is considered "large", and thus essential.
|
| + static bool IsLargeContent(int width, int height);
|
| +
|
| virtual ~PluginInstanceThrottler() {}
|
|
|
| virtual void AddObserver(Observer* observer) = 0;
|
|
|