| 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 "cc/surfaces/surface_id.h" | 8 #include "cc/surfaces/surface_id.h" |
| 9 #include "cc/surfaces/surface_sequence.h" | 9 #include "cc/surfaces/surface_sequence.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 667 IPC_MESSAGE_ROUTED4(FrameMsg_FailedNavigation, | 667 IPC_MESSAGE_ROUTED4(FrameMsg_FailedNavigation, |
| 668 content::CommonNavigationParams, /* common_params */ | 668 content::CommonNavigationParams, /* common_params */ |
| 669 content::RequestNavigationParams, /* request_params */ | 669 content::RequestNavigationParams, /* request_params */ |
| 670 bool, /* stale_copy_in_cache */ | 670 bool, /* stale_copy_in_cache */ |
| 671 int /* error_code */) | 671 int /* error_code */) |
| 672 | 672 |
| 673 // Request to enumerate and return links to all savable resources in the frame | 673 // Request to enumerate and return links to all savable resources in the frame |
| 674 // Note: this covers only the immediate frame / doesn't cover subframes. | 674 // Note: this covers only the immediate frame / doesn't cover subframes. |
| 675 IPC_MESSAGE_ROUTED0(FrameMsg_GetSavableResourceLinks) | 675 IPC_MESSAGE_ROUTED0(FrameMsg_GetSavableResourceLinks) |
| 676 | 676 |
| 677 // Get html data by serializing the target frame and replacing all resource | 677 // Serialize the target frame into raw html/data fragments interspersed |
| 678 // links with a path to the local copy passed in the message payload. | 678 // with "blanks" which the browser will replace with local paths. |
| 679 IPC_MESSAGE_ROUTED3(FrameMsg_GetSerializedHtmlWithLocalLinks, | 679 IPC_MESSAGE_ROUTED0(FrameMsg_GetSerializedHtmlWithLocalLinks); |
| 680 std::vector<GURL> /* urls that have local copy */, | |
| 681 std::vector<base::FilePath> /* paths of local copy */, | |
| 682 base::FilePath /* local directory path */) | |
| 683 | 680 |
| 684 #if defined(ENABLE_PLUGINS) | 681 #if defined(ENABLE_PLUGINS) |
| 685 // 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. |
| 686 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist, | 683 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist, |
| 687 std::set<url::Origin> /* origin_whitelist */) | 684 std::set<url::Origin> /* origin_whitelist */) |
| 688 #endif // defined(ENABLE_PLUGINS) | 685 #endif // defined(ENABLE_PLUGINS) |
| 689 | 686 |
| 690 // ----------------------------------------------------------------------------- | 687 // ----------------------------------------------------------------------------- |
| 691 // Messages sent from the renderer to the browser. | 688 // Messages sent from the renderer to the browser. |
| 692 | 689 |
| (...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1170 IPC_MESSAGE_ROUTED3(FrameHostMsg_SavableResourceLinksResponse, | 1167 IPC_MESSAGE_ROUTED3(FrameHostMsg_SavableResourceLinksResponse, |
| 1171 GURL /* frame URL */, | 1168 GURL /* frame URL */, |
| 1172 std::vector<GURL> /* savable resource links */, | 1169 std::vector<GURL> /* savable resource links */, |
| 1173 std::vector<content::Referrer> /* referrers */) | 1170 std::vector<content::Referrer> /* referrers */) |
| 1174 | 1171 |
| 1175 // Response to FrameMsg_GetSavableResourceLinks in case the frame contains | 1172 // Response to FrameMsg_GetSavableResourceLinks in case the frame contains |
| 1176 // non-savable content (i.e. from a non-savable scheme) or if there were | 1173 // non-savable content (i.e. from a non-savable scheme) or if there were |
| 1177 // errors gathering the links. | 1174 // errors gathering the links. |
| 1178 IPC_MESSAGE_ROUTED0(FrameHostMsg_SavableResourceLinksError) | 1175 IPC_MESSAGE_ROUTED0(FrameHostMsg_SavableResourceLinksError) |
| 1179 | 1176 |
| 1180 // Response to FrameMsg_GetSerializedHtmlWithLocalLinks. | 1177 // Response to FrameMsg_GetSerializedHtmlWithLocalLinks (1). |
| 1181 IPC_MESSAGE_ROUTED3(FrameHostMsg_SerializedHtmlWithLocalLinksResponse, | 1178 // Browser should append the data to the file where the frame is being saved. |
| 1182 GURL /* frame URL */, | 1179 IPC_MESSAGE_ROUTED1(FrameHostMsg_SerializedHtmlFragment, |
| 1183 std::string /* data buffer */, | 1180 std::string /* data buffer */); |
| 1184 int32 /* complete status */) | 1181 |
| 1182 // Response to FrameMsg_GetSerializedHtmlWithLocalLinks (2). |
| 1183 // Browser should find the local path corresponding to the subframe |
| 1184 // and append it to the file where the frame is being saved. |
| 1185 IPC_MESSAGE_ROUTED1(FrameHostMsg_SerializedLocalPathForSubFrame, |
| 1186 int /* RenderFrame's or RenderFrameProxy's routing id |
| 1187 for the subframe we need a local path for. */); |
| 1188 |
| 1189 // Response to FrameMsg_GetSerializedHtmlWithLocalLinks (3). |
| 1190 // Browser should find the local path corresponding to the savable |
| 1191 // resource and append it to the file where the frame is being saved. |
| 1192 IPC_MESSAGE_ROUTED1(FrameHostMsg_SerializedLocalPathForSavableResource, |
| 1193 GURL /* savable resource link */); |
| 1194 |
| 1195 // Response to FrameMsg_GetSerializedHtmlWithLocalLinks (4). |
| 1196 // Browser should close the file where the frame is being saved. |
| 1197 IPC_MESSAGE_ROUTED0(FrameHostMsg_SerializedEndOfFrame) |
| 1185 | 1198 |
| 1186 // Sent when the renderer updates hint for importance of a tab. | 1199 // Sent when the renderer updates hint for importance of a tab. |
| 1187 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdatePageImportanceSignals, | 1200 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdatePageImportanceSignals, |
| 1188 content::PageImportanceSignals) | 1201 content::PageImportanceSignals) |
| 1189 | 1202 |
| 1190 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 1203 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 1191 | 1204 |
| 1192 // Message to show/hide a popup menu using native controls. | 1205 // Message to show/hide a popup menu using native controls. |
| 1193 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 1206 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
| 1194 FrameHostMsg_ShowPopup_Params) | 1207 FrameHostMsg_ShowPopup_Params) |
| 1195 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 1208 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
| 1196 | 1209 |
| 1197 #endif | 1210 #endif |
| 1198 | 1211 |
| 1199 // Adding a new message? Stick to the sort order above: first platform | 1212 // Adding a new message? Stick to the sort order above: first platform |
| 1200 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1213 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
| 1201 // platform independent FrameHostMsg, then ifdefs for platform specific | 1214 // platform independent FrameHostMsg, then ifdefs for platform specific |
| 1202 // FrameHostMsg. | 1215 // FrameHostMsg. |
| OLD | NEW |