| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 #include "url/origin.h" | 49 #include "url/origin.h" |
| 50 | 50 |
| 51 #if defined(ENABLE_PLUGINS) | 51 #if defined(ENABLE_PLUGINS) |
| 52 #include "content/common/pepper_renderer_instance_data.h" | 52 #include "content/common/pepper_renderer_instance_data.h" |
| 53 #endif | 53 #endif |
| 54 | 54 |
| 55 // Singly-included section for type definitions. | 55 // Singly-included section for type definitions. |
| 56 #ifndef CONTENT_COMMON_FRAME_MESSAGES_H_ | 56 #ifndef CONTENT_COMMON_FRAME_MESSAGES_H_ |
| 57 #define CONTENT_COMMON_FRAME_MESSAGES_H_ | 57 #define CONTENT_COMMON_FRAME_MESSAGES_H_ |
| 58 | 58 |
| 59 using FrameMsg_GetSerializedHtmlWithLocalLinks_Map = | 59 using FrameMsg_GetSerializedHtmlWithLocalLinks_UrlMap = |
| 60 std::map<GURL, base::FilePath>; | 60 std::map<GURL, base::FilePath>; |
| 61 using FrameMsg_GetSerializedHtmlWithLocalLinks_FrameRoutingIdMap = |
| 62 std::map<int, base::FilePath>; |
| 61 | 63 |
| 62 using FrameMsg_SerializeAsMHTML_FrameRoutingIdToContentIdMap = | 64 using FrameMsg_SerializeAsMHTML_FrameRoutingIdToContentIdMap = |
| 63 std::map<int, std::string>; | 65 std::map<int, std::string>; |
| 64 | 66 |
| 65 #endif // CONTENT_COMMON_FRAME_MESSAGES_H_ | 67 #endif // CONTENT_COMMON_FRAME_MESSAGES_H_ |
| 66 | 68 |
| 67 #undef IPC_MESSAGE_EXPORT | 69 #undef IPC_MESSAGE_EXPORT |
| 68 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 70 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 69 | 71 |
| 70 #define IPC_MESSAGE_START FrameMsgStart | 72 #define IPC_MESSAGE_START FrameMsgStart |
| (...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 799 content::RequestNavigationParams, /* request_params */ | 801 content::RequestNavigationParams, /* request_params */ |
| 800 bool, /* stale_copy_in_cache */ | 802 bool, /* stale_copy_in_cache */ |
| 801 int /* error_code */) | 803 int /* error_code */) |
| 802 | 804 |
| 803 // Request to enumerate and return links to all savable resources in the frame | 805 // Request to enumerate and return links to all savable resources in the frame |
| 804 // Note: this covers only the immediate frame / doesn't cover subframes. | 806 // Note: this covers only the immediate frame / doesn't cover subframes. |
| 805 IPC_MESSAGE_ROUTED0(FrameMsg_GetSavableResourceLinks) | 807 IPC_MESSAGE_ROUTED0(FrameMsg_GetSavableResourceLinks) |
| 806 | 808 |
| 807 // Get html data by serializing the target frame and replacing all resource | 809 // Get html data by serializing the target frame and replacing all resource |
| 808 // links with a path to the local copy passed in the message payload. | 810 // links with a path to the local copy passed in the message payload. |
| 809 IPC_MESSAGE_ROUTED1(FrameMsg_GetSerializedHtmlWithLocalLinks, | 811 IPC_MESSAGE_ROUTED2(FrameMsg_GetSerializedHtmlWithLocalLinks, |
| 810 FrameMsg_GetSerializedHtmlWithLocalLinks_Map) | 812 FrameMsg_GetSerializedHtmlWithLocalLinks_UrlMap, |
| 813 FrameMsg_GetSerializedHtmlWithLocalLinks_FrameRoutingIdMap) |
| 811 | 814 |
| 812 // Serialize target frame and its resources into MHTML and write it into the | 815 // Serialize target frame and its resources into MHTML and write it into the |
| 813 // provided destination file handle. Note that when serializing multiple | 816 // provided destination file handle. Note that when serializing multiple |
| 814 // frames, one needs to serialize the *main* frame first (the main frame | 817 // frames, one needs to serialize the *main* frame first (the main frame |
| 815 // needs to go first according to RFC2557 + the main frame will trigger | 818 // needs to go first according to RFC2557 + the main frame will trigger |
| 816 // generation of the MHTML header). | 819 // generation of the MHTML header). |
| 817 IPC_MESSAGE_ROUTED1(FrameMsg_SerializeAsMHTML, FrameMsg_SerializeAsMHTML_Params) | 820 IPC_MESSAGE_ROUTED1(FrameMsg_SerializeAsMHTML, FrameMsg_SerializeAsMHTML_Params) |
| 818 | 821 |
| 819 IPC_MESSAGE_ROUTED1(FrameMsg_SetFrameOwnerProperties, | 822 IPC_MESSAGE_ROUTED1(FrameMsg_SetFrameOwnerProperties, |
| 820 blink::WebFrameOwnerProperties /* frame_owner_properties */) | 823 blink::WebFrameOwnerProperties /* frame_owner_properties */) |
| (...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1433 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply, | 1436 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply, |
| 1434 int /* version */, | 1437 int /* version */, |
| 1435 std::vector<gfx::RectF> /* rects */, | 1438 std::vector<gfx::RectF> /* rects */, |
| 1436 gfx::RectF /* active_rect */) | 1439 gfx::RectF /* active_rect */) |
| 1437 #endif | 1440 #endif |
| 1438 | 1441 |
| 1439 // Adding a new message? Stick to the sort order above: first platform | 1442 // Adding a new message? Stick to the sort order above: first platform |
| 1440 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1443 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
| 1441 // platform independent FrameHostMsg, then ifdefs for platform specific | 1444 // platform independent FrameHostMsg, then ifdefs for platform specific |
| 1442 // FrameHostMsg. | 1445 // FrameHostMsg. |
| OLD | NEW |