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

Unified Diff: content/renderer/render_frame_impl.h

Issue 680193002: Plugin Power Saver: Implement size-based heuristic for peripheral content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix shutdown crash Created 6 years, 2 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/render_frame_impl.h
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index 9457afc5736fea05ce9e60443f86850b9e326c86..0a7c6b2ecad0f35ddbd28a0a950ecfe5d34d79eb 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -72,6 +72,7 @@ class NotificationPermissionDispatcher;
class NotificationProvider;
class PageState;
class PepperPluginInstanceImpl;
+class PluginPowerSaverHelper;
class PushMessagingDispatcher;
class RendererAccessibility;
class RendererCdmManager;
@@ -235,10 +236,11 @@ class CONTENT_EXPORT RenderFrameImpl
const std::vector<blink::WebCompositionUnderline>& underlines,
int selection_start,
int selection_end);
- void OnImeConfirmComposition(
- const base::string16& text,
- const gfx::Range& replacement_range,
- bool keep_selection);
+ void OnImeConfirmComposition(const base::string16& text,
+ const gfx::Range& replacement_range,
+ bool keep_selection);
+
+ PluginPowerSaverHelper* GetPluginPowerSaverHelper();
#endif // ENABLE_PLUGINS
// May return NULL in some cases, especially if userMediaClient() returns
@@ -674,6 +676,8 @@ class CONTENT_EXPORT RenderFrameImpl
// Current text input composition text. Empty if no composition is in
// progress.
base::string16 pepper_composition_text_;
+
+ PluginPowerSaverHelper* plugin_power_saver_helper_;
#endif
RendererWebCookieJarImpl cookie_jar_;

Powered by Google App Engine
This is Rietveld 408576698