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

Unified Diff: content/browser/web_contents/web_contents_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/browser/web_contents/web_contents_impl.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index 60fdc726a86e9005a816a5b400dbf8a380c3f9e7..17159deae7b7da00cbd8384c03626142454d6c0b 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -773,6 +773,8 @@ class CONTENT_EXPORT WebContentsImpl
bool is_hung);
void OnPluginCrashed(const base::FilePath& plugin_path,
base::ProcessId plugin_pid);
+ void OnPluginContentOriginAllowed(const GURL& content_origin);
+ void OnPluginContentMarkedPeripheral(const GURL& content_origin);
void OnDomOperationResponse(const std::string& json_string,
int automation_id);
void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy);
@@ -990,6 +992,11 @@ class CONTENT_EXPORT WebContentsImpl
scoped_ptr<PowerSaveBlocker> audio_power_save_blocker_;
scoped_ptr<PowerSaveBlocker> video_power_save_blocker_;
+ // Plugin content origins that have been whitelisted or marked peripheral.
+ typedef std::map<RenderFrameHost*, std::set<GURL> > PluginContentOriginMap;
+ PluginContentOriginMap plugin_content_origin_whitelist_;
+ PluginContentOriginMap plugin_content_marked_peripheral_;
+
// Manages the frame tree of the page and process swaps in each node.
FrameTree frame_tree_;
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_impl.cc » ('j') | content/browser/web_contents/web_contents_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698