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

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: 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/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 db6d121b676f9dde0ebbdff02b0c230c6fe194dd..302b814d41333d91bb0fdf90c8bdb1c872dee4b8 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -773,6 +773,7 @@ class CONTENT_EXPORT WebContentsImpl
bool is_hung);
void OnPluginCrashed(const base::FilePath& plugin_path,
base::ProcessId plugin_pid);
+ void OnPluginContentOriginAllowed(const GURL& content_origin);
#endif
void OnDomOperationResponse(const std::string& json_string,
int automation_id);
@@ -998,6 +999,12 @@ class CONTENT_EXPORT WebContentsImpl
scoped_ptr<PowerSaveBlocker> audio_power_save_blocker_;
scoped_ptr<PowerSaveBlocker> video_power_save_blocker_;
+#if defined(ENABLE_PLUGINS)
+ // Plugin content origins that have been whitelisted.
Charlie Reis 2014/10/30 22:13:16 It's not clear from the comment what these have be
tommycli 2014/10/31 00:01:21 Done.
+ typedef std::set<GURL> PluginContentOriginSet;
+ PluginContentOriginSet plugin_content_origin_whitelist_;
Charlie Reis 2014/10/30 22:13:16 I'm wondering if this belongs on a WebContentsObse
tommycli 2014/10/31 00:01:22 Done.
+#endif
+
// 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