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

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

Issue 669703003: Plugin Power Saver: Restrict Power Saver to cross-origin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add path for remote top level frames. 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 4b1493147a0deedf8f559539adf0d32718892c24..36d2a268c52860f15b38db3c5b6dc29431fa8531 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.h
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.h
@@ -687,6 +687,9 @@ 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);
RenderFrameImpl* render_frame_;

Powered by Google App Engine
This is Rietveld 408576698