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

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

Issue 1114623002: Plugin Power Saver: Make PPS work well with prerendered pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 9bd9357107d33a0bad012efc3f22cfdb1c31d8f3..ec3eed68403ce47aa7c3fbf0c83c3fb9deb63c73 100644
--- a/content/renderer/pepper/plugin_instance_throttler_impl.h
+++ b/content/renderer/pepper/plugin_instance_throttler_impl.h
@@ -11,6 +11,7 @@
#include "base/timer/timer.h"
#include "content/common/content_export.h"
#include "content/public/renderer/plugin_instance_throttler.h"
+#include "content/renderer/pepper/pepper_webplugin_impl.h"
#include "ppapi/shared_impl/ppb_view_shared.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/gfx/geometry/size.h"
@@ -39,7 +40,7 @@ class CONTENT_EXPORT PluginInstanceThrottlerImpl
bool IsHiddenForPlaceholder() const override;
void MarkPluginEssential(PowerSaverUnthrottleMethod method) override;
void SetHiddenForPlaceholder(bool hidden) override;
- blink::WebPlugin* GetWebPlugin() const override;
+ PepperWebPluginImpl* GetWebPlugin() const override;
const gfx::Size& GetSize() const override;
void NotifyAudioThrottled() override;
@@ -98,9 +99,6 @@ 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_;
« no previous file with comments | « content/public/renderer/plugin_instance_throttler.h ('k') | content/renderer/pepper/plugin_instance_throttler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698