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

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

Issue 849723002: Plugin Power Saver: Make PepperPluginInstanceThrottler interface public. (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/renderer/pepper/pepper_webplugin_impl.h
diff --git a/content/renderer/pepper/pepper_webplugin_impl.h b/content/renderer/pepper/pepper_webplugin_impl.h
index 2c6eea51b6b6fb4615f3b4294a7415b82bcb553a..cdc49d98f3c946a8c055ebdac756371fb64a48ef 100644
--- a/content/renderer/pepper/pepper_webplugin_impl.h
+++ b/content/renderer/pepper/pepper_webplugin_impl.h
@@ -11,7 +11,6 @@
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/sequenced_task_runner_helpers.h"
-#include "content/public/renderer/render_frame.h"
#include "ppapi/c/pp_var.h"
#include "third_party/WebKit/public/web/WebPlugin.h"
#include "ui/gfx/geometry/rect.h"
@@ -26,6 +25,7 @@ struct WebPrintParams;
namespace content {
class PepperPluginInstanceImpl;
+class PluginInstanceThrottlerImpl;
class PluginModule;
class PPB_URLLoader_Impl;
class RenderFrameImpl;
@@ -35,7 +35,7 @@ class PepperWebPluginImpl : public blink::WebPlugin {
PepperWebPluginImpl(PluginModule* module,
const blink::WebPluginParams& params,
RenderFrameImpl* render_frame,
- RenderFrame::PluginPowerSaverMode power_saver_mode);
+ scoped_ptr<PluginInstanceThrottlerImpl> throttler);
PepperPluginInstanceImpl* instance() { return instance_.get(); }
@@ -99,7 +99,7 @@ class PepperWebPluginImpl : public blink::WebPlugin {
// True if the instance represents the entire document in a frame instead of
// being an embedded resource.
bool full_frame_;
- RenderFrame::PluginPowerSaverMode power_saver_mode_;
+ scoped_ptr<PluginInstanceThrottlerImpl> throttler_;
scoped_refptr<PepperPluginInstanceImpl> instance_;
gfx::Rect plugin_rect_;
PP_Var instance_object_;
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_throttler_unittest.cc ('k') | content/renderer/pepper/pepper_webplugin_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698