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

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

Issue 1015023002: Plugin Power Saver: Throttle 'large' plugins that appear small. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use gfx::Size Created 5 years, 9 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 d20f5257cd5c79f224701f5692658979c026dd25..d5ec3ce778b49ead4170a0135498011cd259c937 100644
--- a/content/public/renderer/plugin_instance_throttler.h
+++ b/content/public/renderer/plugin_instance_throttler.h
@@ -14,6 +14,10 @@ class WebPlugin;
struct WebPluginParams;
}
+namespace gfx {
+class Size;
+}
+
class GURL;
class SkBitmap;
@@ -84,6 +88,8 @@ class CONTENT_EXPORT PluginInstanceThrottler {
virtual blink::WebPlugin* GetWebPlugin() const = 0;
+ virtual const gfx::Size& GetSize() const = 0;
Lei Zhang 2015/03/18 00:48:12 You should comment what this is exactly.
tommycli 2015/03/19 22:10:12 Done.
+
protected:
PluginInstanceThrottler() {}

Powered by Google App Engine
This is Rietveld 408576698