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

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: 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..a7cf1eac73b9b873dd5ee343fa12bb01455274b7 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.h
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.h
@@ -534,6 +534,7 @@ class CONTENT_EXPORT PepperPluginInstanceImpl
// RenderFrameObserver
void OnDestruct() override;
+ bool OnMessageReceived(const IPC::Message& message) override;
void AddLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info);
@@ -689,8 +690,9 @@ class CONTENT_EXPORT PepperPluginInstanceImpl
// Peripheral content is cross-origin plugin content determined heuristically
// to be not the "main attraction" of the webpage.
- bool IsPeripheralContent() const;
+ bool IsPeripheralContent();
void SetPluginThrottled(bool throttled);
+ void OnPluginContentOriginWhitelisted(const GURL& content_origin);
RenderFrameImpl* render_frame_;
base::Closure instance_deleted_callback_;

Powered by Google App Engine
This is Rietveld 408576698