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

Unified Diff: content/renderer/pepper/pepper_plugin_instance_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: spinoff ifdef changes into separate cl 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/pepper/pepper_plugin_instance_impl.h
diff --git a/content/renderer/pepper/pepper_plugin_instance_impl.h b/content/renderer/pepper/pepper_plugin_instance_impl.h
index 36d2a268c52860f15b38db3c5b6dc29431fa8531..5389a8be4a323b4c32c8581f978d5751e6522aa6 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.h
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.h
@@ -687,10 +687,8 @@ class CONTENT_EXPORT PepperPluginInstanceImpl
int pending_host_id,
const ppapi::URLResponseInfoData& data);
- // Peripheral content is cross-origin plugin content determined heuristically
- // to be not the "main attraction" of the webpage.
- bool IsPeripheralContent() const;
void SetPluginThrottled(bool throttled);
+ void DisablePowerSaverAndUnthrottle();
RenderFrameImpl* render_frame_;
base::Closure instance_deleted_callback_;

Powered by Google App Engine
This is Rietveld 408576698