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

Unified Diff: content/renderer/pepper/plugin_instance_throttler_impl.h

Issue 1088763002: Plugin Power Saver: Add comprehensive browser tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0260-plugins-overhaul-prerender-tests
Patch Set: add back PostMessage undef Created 5 years, 8 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/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 b33db8e8558d3d3460f3edd84ecebdd541ba7200..13fe1aef803e9909b4865c82363070f58921b99b 100644
--- a/content/renderer/pepper/plugin_instance_throttler_impl.h
+++ b/content/renderer/pepper/plugin_instance_throttler_impl.h
@@ -22,6 +22,7 @@ struct WebRect;
namespace content {
+class PepperWebPluginImpl;
class RenderFrameImpl;
class CONTENT_EXPORT PluginInstanceThrottlerImpl
@@ -42,7 +43,7 @@ class CONTENT_EXPORT PluginInstanceThrottlerImpl
const gfx::Size& GetSize() const override;
void NotifyAudioThrottled() override;
- void SetWebPlugin(blink::WebPlugin* web_plugin);
+ void SetWebPlugin(PepperWebPluginImpl* web_plugin);
bool needs_representative_keyframe() const {
return state_ == THROTTLER_STATE_AWAITING_KEYFRAME;
@@ -88,7 +89,7 @@ class CONTENT_EXPORT PluginInstanceThrottlerImpl
bool is_hidden_for_placeholder_;
- blink::WebPlugin* web_plugin_;
+ PepperWebPluginImpl* web_plugin_;
// Holds a reference to the last received frame. This doesn't actually copy
// the pixel data, but rather increments the reference count to the pixels.
@@ -100,6 +101,9 @@ class CONTENT_EXPORT PluginInstanceThrottlerImpl
// Number of frames we've examined to find a keyframe.
int frames_examined_;
+ // Plugin module name as of initialization.
+ std::string plugin_module_name_;
+
// Plugin's unobscured dimensions as of initialization.
gfx::Size unobscured_size_;

Powered by Google App Engine
This is Rietveld 408576698