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 5fa327679794a658b62c58f191c39f24a236f664..f5343d8f97c1667e596217356aa9b64aabcc75d3 100644 |
--- a/content/public/renderer/plugin_instance_throttler.h |
+++ b/content/public/renderer/plugin_instance_throttler.h |
@@ -10,6 +10,7 @@ |
#include "content/common/content_export.h" |
class GURL; |
+class SkBitmap; |
namespace content { |
@@ -61,7 +62,10 @@ class CONTENT_EXPORT PluginInstanceThrottler { |
class Observer { |
public: |
- virtual void OnThrottleStateChange() = 0; |
+ // Guaranteed to be called before the throttle is engaged. |
+ virtual void OnKeyframeExtracted(const SkBitmap* bitmap) {} |
+ virtual void OnThrottleStateChange() {} |
+ virtual void OnThrottlerDestroyed() {} |
}; |
// Returns a nullptr if no throttler needed based on |power_saver_mode|. |