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 27 matching lines...) Expand all Loading... |
38 #include "url/origin.h" | 38 #include "url/origin.h" |
39 | 39 |
40 #if defined(ENABLE_PLUGINS) | 40 #if defined(ENABLE_PLUGINS) |
41 #include "content/common/pepper_renderer_instance_data.h" | 41 #include "content/common/pepper_renderer_instance_data.h" |
42 #endif | 42 #endif |
43 | 43 |
44 // Singly-included section for type definitions. | 44 // Singly-included section for type definitions. |
45 #ifndef CONTENT_COMMON_FRAME_MESSAGES_H_ | 45 #ifndef CONTENT_COMMON_FRAME_MESSAGES_H_ |
46 #define CONTENT_COMMON_FRAME_MESSAGES_H_ | 46 #define CONTENT_COMMON_FRAME_MESSAGES_H_ |
47 | 47 |
48 using FrameMsg_GetSerializedHtmlWithLocalLinks_Map = | 48 using FrameMsg_GetSerializedHtmlWithLocalLinks_UrlMap = |
49 std::map<GURL, base::FilePath>; | 49 std::map<GURL, base::FilePath>; |
| 50 using FrameMsg_GetSerializedHtmlWithLocalLinks_FrameRoutingIdMap = |
| 51 std::map<int, base::FilePath>; |
50 | 52 |
51 using FrameMsg_SerializeAsMHTML_FrameRoutingIdToContentIdMap = | 53 using FrameMsg_SerializeAsMHTML_FrameRoutingIdToContentIdMap = |
52 std::map<int, std::string>; | 54 std::map<int, std::string>; |
53 | 55 |
54 #endif // CONTENT_COMMON_FRAME_MESSAGES_H_ | 56 #endif // CONTENT_COMMON_FRAME_MESSAGES_H_ |
55 | 57 |
56 #undef IPC_MESSAGE_EXPORT | 58 #undef IPC_MESSAGE_EXPORT |
57 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 59 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
58 | 60 |
59 #define IPC_MESSAGE_START FrameMsgStart | 61 #define IPC_MESSAGE_START FrameMsgStart |
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
724 content::RequestNavigationParams, /* request_params */ | 726 content::RequestNavigationParams, /* request_params */ |
725 bool, /* stale_copy_in_cache */ | 727 bool, /* stale_copy_in_cache */ |
726 int /* error_code */) | 728 int /* error_code */) |
727 | 729 |
728 // Request to enumerate and return links to all savable resources in the frame | 730 // Request to enumerate and return links to all savable resources in the frame |
729 // Note: this covers only the immediate frame / doesn't cover subframes. | 731 // Note: this covers only the immediate frame / doesn't cover subframes. |
730 IPC_MESSAGE_ROUTED0(FrameMsg_GetSavableResourceLinks) | 732 IPC_MESSAGE_ROUTED0(FrameMsg_GetSavableResourceLinks) |
731 | 733 |
732 // Get html data by serializing the target frame and replacing all resource | 734 // Get html data by serializing the target frame and replacing all resource |
733 // links with a path to the local copy passed in the message payload. | 735 // links with a path to the local copy passed in the message payload. |
734 IPC_MESSAGE_ROUTED1(FrameMsg_GetSerializedHtmlWithLocalLinks, | 736 IPC_MESSAGE_ROUTED2(FrameMsg_GetSerializedHtmlWithLocalLinks, |
735 FrameMsg_GetSerializedHtmlWithLocalLinks_Map) | 737 FrameMsg_GetSerializedHtmlWithLocalLinks_UrlMap, |
| 738 FrameMsg_GetSerializedHtmlWithLocalLinks_FrameRoutingIdMap) |
736 | 739 |
737 // Serialize target frame and its resources into MHTML and write it into the | 740 // Serialize target frame and its resources into MHTML and write it into the |
738 // provided destination file handle. | 741 // provided destination file handle. |
739 // | 742 // |
740 // When starting generation of a new MHTML document, one needs to start by | 743 // When starting generation of a new MHTML document, one needs to start by |
741 // sending FrameMsg_SerializeAsMHTML for the *main* frame (main frame needs to | 744 // sending FrameMsg_SerializeAsMHTML for the *main* frame (main frame needs to |
742 // be the first part in the MHTML document + main frame will trigger generation | 745 // be the first part in the MHTML document + main frame will trigger generation |
743 // of the MHTML header). | 746 // of the MHTML header). |
744 // | 747 // |
745 // The same |mhtml_boundary_marker| should be used for serialization of each | 748 // The same |mhtml_boundary_marker| should be used for serialization of each |
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1319 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 1322 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
1320 FrameHostMsg_ShowPopup_Params) | 1323 FrameHostMsg_ShowPopup_Params) |
1321 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 1324 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
1322 | 1325 |
1323 #endif | 1326 #endif |
1324 | 1327 |
1325 // Adding a new message? Stick to the sort order above: first platform | 1328 // Adding a new message? Stick to the sort order above: first platform |
1326 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1329 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
1327 // platform independent FrameHostMsg, then ifdefs for platform specific | 1330 // platform independent FrameHostMsg, then ifdefs for platform specific |
1328 // FrameHostMsg. | 1331 // FrameHostMsg. |
OLD | NEW |