Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(628)

Side by Side Diff: content/common/frame_messages.h

Issue 1502563004: Save-Page-As-Complete-Html: Each frame links to a distinct local file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@no-url-deduping-for-frame-and-adding-save-item-id
Patch Set: Addressed feedback from Randy (and apparently accidentally rebased as well...). Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #include "url/origin.h" 47 #include "url/origin.h"
48 48
49 #if defined(ENABLE_PLUGINS) 49 #if defined(ENABLE_PLUGINS)
50 #include "content/common/pepper_renderer_instance_data.h" 50 #include "content/common/pepper_renderer_instance_data.h"
51 #endif 51 #endif
52 52
53 // Singly-included section for type definitions. 53 // Singly-included section for type definitions.
54 #ifndef CONTENT_COMMON_FRAME_MESSAGES_H_ 54 #ifndef CONTENT_COMMON_FRAME_MESSAGES_H_
55 #define CONTENT_COMMON_FRAME_MESSAGES_H_ 55 #define CONTENT_COMMON_FRAME_MESSAGES_H_
56 56
57 using FrameMsg_GetSerializedHtmlWithLocalLinks_Map = 57 using FrameMsg_GetSerializedHtmlWithLocalLinks_UrlMap =
58 std::map<GURL, base::FilePath>; 58 std::map<GURL, base::FilePath>;
59 using FrameMsg_GetSerializedHtmlWithLocalLinks_FrameRoutingIdMap =
60 std::map<int, base::FilePath>;
59 61
60 using FrameMsg_SerializeAsMHTML_FrameRoutingIdToContentIdMap = 62 using FrameMsg_SerializeAsMHTML_FrameRoutingIdToContentIdMap =
61 std::map<int, std::string>; 63 std::map<int, std::string>;
62 64
63 #endif // CONTENT_COMMON_FRAME_MESSAGES_H_ 65 #endif // CONTENT_COMMON_FRAME_MESSAGES_H_
64 66
65 #undef IPC_MESSAGE_EXPORT 67 #undef IPC_MESSAGE_EXPORT
66 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 68 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
67 69
68 #define IPC_MESSAGE_START FrameMsgStart 70 #define IPC_MESSAGE_START FrameMsgStart
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 content::RequestNavigationParams, /* request_params */ 780 content::RequestNavigationParams, /* request_params */
779 bool, /* stale_copy_in_cache */ 781 bool, /* stale_copy_in_cache */
780 int /* error_code */) 782 int /* error_code */)
781 783
782 // Request to enumerate and return links to all savable resources in the frame 784 // Request to enumerate and return links to all savable resources in the frame
783 // Note: this covers only the immediate frame / doesn't cover subframes. 785 // Note: this covers only the immediate frame / doesn't cover subframes.
784 IPC_MESSAGE_ROUTED0(FrameMsg_GetSavableResourceLinks) 786 IPC_MESSAGE_ROUTED0(FrameMsg_GetSavableResourceLinks)
785 787
786 // Get html data by serializing the target frame and replacing all resource 788 // Get html data by serializing the target frame and replacing all resource
787 // links with a path to the local copy passed in the message payload. 789 // links with a path to the local copy passed in the message payload.
788 IPC_MESSAGE_ROUTED1(FrameMsg_GetSerializedHtmlWithLocalLinks, 790 IPC_MESSAGE_ROUTED2(FrameMsg_GetSerializedHtmlWithLocalLinks,
789 FrameMsg_GetSerializedHtmlWithLocalLinks_Map) 791 FrameMsg_GetSerializedHtmlWithLocalLinks_UrlMap,
792 FrameMsg_GetSerializedHtmlWithLocalLinks_FrameRoutingIdMap)
790 793
791 // Serialize target frame and its resources into MHTML and write it into the 794 // Serialize target frame and its resources into MHTML and write it into the
792 // provided destination file handle. Note that when serializing multiple 795 // provided destination file handle. Note that when serializing multiple
793 // frames, one needs to serialize the *main* frame first (the main frame 796 // frames, one needs to serialize the *main* frame first (the main frame
794 // needs to go first according to RFC2557 + the main frame will trigger 797 // needs to go first according to RFC2557 + the main frame will trigger
795 // generation of the MHTML header). 798 // generation of the MHTML header).
796 IPC_MESSAGE_ROUTED1(FrameMsg_SerializeAsMHTML, FrameMsg_SerializeAsMHTML_Params) 799 IPC_MESSAGE_ROUTED1(FrameMsg_SerializeAsMHTML, FrameMsg_SerializeAsMHTML_Params)
797 800
798 IPC_MESSAGE_ROUTED1(FrameMsg_SetFrameOwnerProperties, 801 IPC_MESSAGE_ROUTED1(FrameMsg_SetFrameOwnerProperties,
799 blink::WebFrameOwnerProperties /* frame_owner_properties */) 802 blink::WebFrameOwnerProperties /* frame_owner_properties */)
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
1367 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, 1370 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup,
1368 FrameHostMsg_ShowPopup_Params) 1371 FrameHostMsg_ShowPopup_Params)
1369 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) 1372 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup)
1370 1373
1371 #endif 1374 #endif
1372 1375
1373 // Adding a new message? Stick to the sort order above: first platform 1376 // Adding a new message? Stick to the sort order above: first platform
1374 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1377 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1375 // platform independent FrameHostMsg, then ifdefs for platform specific 1378 // platform independent FrameHostMsg, then ifdefs for platform specific
1376 // FrameHostMsg. 1379 // FrameHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698