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

Unified Diff: content/common/frame_messages.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: fix shutdown crash 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/common/frame_messages.h
diff --git a/content/common/frame_messages.h b/content/common/frame_messages.h
index 17739522f077294634cf8a8375b5fc6afe2aca48..4078fa823837748189379ddf271702b17c25c420 100644
--- a/content/common/frame_messages.h
+++ b/content/common/frame_messages.h
@@ -490,6 +490,12 @@ IPC_MESSAGE_ROUTED4(FrameMsg_CommitNavigation,
content::CommonNavigationParams, /* common_params */
content::CommitNavigationParams /* commit_params */)
+#if defined(ENABLE_PLUGINS)
+// Notifies the renderer of updates to the Plugin Power Saver origin whitelist.
+IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist,
+ std::set<GURL> /* origin_whitelist */)
+#endif // defined(ENABLE_PLUGINS)
+
// -----------------------------------------------------------------------------
// Messages sent from the renderer to the browser.
@@ -601,6 +607,7 @@ IPC_MESSAGE_ROUTED2(FrameHostMsg_DomOperationResponse,
std::string /* json_string */,
int /* automation_id */)
+#if defined(ENABLE_PLUGINS)
// Sent to the browser when the renderer detects it is blocked on a pepper
// plugin message for too long. This is also sent when it becomes unhung
// (according to the value of is_hung). The browser can give the user the
@@ -644,6 +651,14 @@ IPC_SYNC_MESSAGE_CONTROL4_2(FrameHostMsg_OpenChannelToPlugin,
IPC::ChannelHandle /* channel_handle */,
content::WebPluginInfo /* info */)
+// A renderer sends this to the browser process when it wants to temporarily
+// whitelist an origin's plugin content as essential. This temporary whitelist
+// is specific to a top level frame, and is cleared when the whitelisting
+// RenderFrame is destroyed.
+IPC_MESSAGE_ROUTED1(FrameHostMsg_PluginContentOriginAllowed,
+ GURL /* content_origin */)
+#endif // defined(ENABLE_PLUGINS)
+
// Acknowledge that we presented an ubercomp frame.
//
// See FrameMsg_CompositorFrameSwapped

Powered by Google App Engine
This is Rietveld 408576698