Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Unified Diff: content/public/renderer/plugin_instance_throttler.h

Issue 866173002: Plugin Power Saver: Add UI Overlay to throttled plugin using placeholder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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|.

Powered by Google App Engine
This is Rietveld 408576698