Chromium Code Reviews| Index: content/common/frame_messages.h |
| diff --git a/content/common/frame_messages.h b/content/common/frame_messages.h |
| index 17739522f077294634cf8a8375b5fc6afe2aca48..2c58de9eeecca76bc9cdb09259e5b67ac0845058 100644 |
| --- a/content/common/frame_messages.h |
| +++ b/content/common/frame_messages.h |
| @@ -490,6 +490,13 @@ IPC_MESSAGE_ROUTED4(FrameMsg_CommitNavigation, |
| content::CommonNavigationParams, /* common_params */ |
| content::CommitNavigationParams /* commit_params */) |
| +#if defined(ENABLE_PLUGINS) |
| +// Notifies the renderer that the specified plugin content origin is |
| +// whitelisted and should not be subject to power saver. |
| +IPC_MESSAGE_ROUTED1(FrameMsg_PluginContentOriginWhitelisted, |
| + GURL /* content_origin */) |
| +#endif // defined(ENABLE_PLUGINS) |
| + |
| // ----------------------------------------------------------------------------- |
| // Messages sent from the renderer to the browser. |
| @@ -601,6 +608,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 +652,20 @@ IPC_SYNC_MESSAGE_CONTROL4_2(FrameHostMsg_OpenChannelToPlugin, |
| IPC::ChannelHandle /* channel_handle */, |
| content::WebPluginInfo /* info */) |
| +// A renderer sends this to the brower process when it wants to temporarily |
|
Lei Zhang
2014/10/28 02:16:23
typo: browser
tommycli
2014/10/28 22:18:07
Done.
|
| +// 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 */) |
| + |
| +// A renderer sends this to the browser process when it encounters plugin |
| +// content it has marked peripheral. The renderer then expects the browser |
| +// process to notify it if the origin is later temporarily whitelisted. |
| +IPC_MESSAGE_ROUTED1(FrameHostMsg_PluginContentMarkedPeripheral, |
| + GURL /* content_origin */) |
| +#endif // defined(ENABLE_PLUGINS) |
| + |
| // Acknowledge that we presented an ubercomp frame. |
| // |
| // See FrameMsg_CompositorFrameSwapped |