| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // IPC messages for interacting with frames. | 5 // IPC messages for interacting with frames. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include "base/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
| 9 #include "cc/surfaces/surface_id.h" | 9 #include "cc/surfaces/surface_id.h" |
| 10 #include "cc/surfaces/surface_sequence.h" | 10 #include "cc/surfaces/surface_sequence.h" |
| (...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 674 // and that the renderer should display an appropriate error page. | 674 // and that the renderer should display an appropriate error page. |
| 675 IPC_MESSAGE_ROUTED4(FrameMsg_FailedNavigation, | 675 IPC_MESSAGE_ROUTED4(FrameMsg_FailedNavigation, |
| 676 content::CommonNavigationParams, /* common_params */ | 676 content::CommonNavigationParams, /* common_params */ |
| 677 content::RequestNavigationParams, /* request_params */ | 677 content::RequestNavigationParams, /* request_params */ |
| 678 bool, /* stale_copy_in_cache */ | 678 bool, /* stale_copy_in_cache */ |
| 679 int /* error_code */) | 679 int /* error_code */) |
| 680 | 680 |
| 681 #if defined(ENABLE_PLUGINS) | 681 #if defined(ENABLE_PLUGINS) |
| 682 // Notifies the renderer of updates to the Plugin Power Saver origin whitelist. | 682 // Notifies the renderer of updates to the Plugin Power Saver origin whitelist. |
| 683 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist, | 683 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist, |
| 684 std::set<GURL> /* origin_whitelist */) | 684 std::set<url::Origin> /* origin_whitelist */) |
| 685 #endif // defined(ENABLE_PLUGINS) | 685 #endif // defined(ENABLE_PLUGINS) |
| 686 | 686 |
| 687 // ----------------------------------------------------------------------------- | 687 // ----------------------------------------------------------------------------- |
| 688 // Messages sent from the renderer to the browser. | 688 // Messages sent from the renderer to the browser. |
| 689 | 689 |
| 690 // Blink and JavaScript error messages to log to the console | 690 // Blink and JavaScript error messages to log to the console |
| 691 // or debugger UI. | 691 // or debugger UI. |
| 692 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, | 692 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, |
| 693 int32, /* log level */ | 693 int32, /* log level */ |
| 694 base::string16, /* msg */ | 694 base::string16, /* msg */ |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 900 std::string /* mime_type */, | 900 std::string /* mime_type */, |
| 901 bool /* found */, | 901 bool /* found */, |
| 902 content::WebPluginInfo /* plugin info */, | 902 content::WebPluginInfo /* plugin info */, |
| 903 std::string /* actual_mime_type */) | 903 std::string /* actual_mime_type */) |
| 904 | 904 |
| 905 // A renderer sends this to the browser process when it wants to temporarily | 905 // A renderer sends this to the browser process when it wants to temporarily |
| 906 // whitelist an origin's plugin content as essential. This temporary whitelist | 906 // whitelist an origin's plugin content as essential. This temporary whitelist |
| 907 // is specific to a top level frame, and is cleared when the whitelisting | 907 // is specific to a top level frame, and is cleared when the whitelisting |
| 908 // RenderFrame is destroyed. | 908 // RenderFrame is destroyed. |
| 909 IPC_MESSAGE_ROUTED1(FrameHostMsg_PluginContentOriginAllowed, | 909 IPC_MESSAGE_ROUTED1(FrameHostMsg_PluginContentOriginAllowed, |
| 910 GURL /* content_origin */) | 910 url::Origin /* content_origin */) |
| 911 | 911 |
| 912 // A renderer sends this to the browser process when it wants to | 912 // A renderer sends this to the browser process when it wants to |
| 913 // create a plugin. The browser will create the plugin process if | 913 // create a plugin. The browser will create the plugin process if |
| 914 // necessary, and will return a handle to the channel on success. | 914 // necessary, and will return a handle to the channel on success. |
| 915 // On error an empty string is returned. | 915 // On error an empty string is returned. |
| 916 IPC_SYNC_MESSAGE_CONTROL4_2(FrameHostMsg_OpenChannelToPlugin, | 916 IPC_SYNC_MESSAGE_CONTROL4_2(FrameHostMsg_OpenChannelToPlugin, |
| 917 int /* render_frame_id */, | 917 int /* render_frame_id */, |
| 918 GURL /* url */, | 918 GURL /* url */, |
| 919 GURL /* page_url */, | 919 GURL /* page_url */, |
| 920 std::string /* mime_type */, | 920 std::string /* mime_type */, |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1186 // for details. | 1186 // for details. |
| 1187 IPC_SYNC_MESSAGE_CONTROL2_0(FrameHostMsg_PreCacheFontCharacters, | 1187 IPC_SYNC_MESSAGE_CONTROL2_0(FrameHostMsg_PreCacheFontCharacters, |
| 1188 LOGFONT /* font_data */, | 1188 LOGFONT /* font_data */, |
| 1189 base::string16 /* characters */) | 1189 base::string16 /* characters */) |
| 1190 #endif | 1190 #endif |
| 1191 | 1191 |
| 1192 // Adding a new message? Stick to the sort order above: first platform | 1192 // Adding a new message? Stick to the sort order above: first platform |
| 1193 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1193 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
| 1194 // platform independent FrameHostMsg, then ifdefs for platform specific | 1194 // platform independent FrameHostMsg, then ifdefs for platform specific |
| 1195 // FrameHostMsg. | 1195 // FrameHostMsg. |
| OLD | NEW |