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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: content/common/frame_messages.h
diff --git a/content/common/frame_messages.h b/content/common/frame_messages.h
index 18892e8df157d35185a1ed50ea36d64b4f8181db..6fcad1a90df0ae52d0f5453dec369ab8d4220dd5 100644
--- a/content/common/frame_messages.h
+++ b/content/common/frame_messages.h
@@ -54,8 +54,10 @@
#ifndef CONTENT_COMMON_FRAME_MESSAGES_H_
#define CONTENT_COMMON_FRAME_MESSAGES_H_
-using FrameMsg_GetSerializedHtmlWithLocalLinks_Map =
+using FrameMsg_GetSerializedHtmlWithLocalLinks_UrlMap =
std::map<GURL, base::FilePath>;
+using FrameMsg_GetSerializedHtmlWithLocalLinks_FrameRoutingIdMap =
+ std::map<int, base::FilePath>;
using FrameMsg_SerializeAsMHTML_FrameRoutingIdToContentIdMap =
std::map<int, std::string>;
@@ -785,8 +787,9 @@ IPC_MESSAGE_ROUTED0(FrameMsg_GetSavableResourceLinks)
// Get html data by serializing the target frame and replacing all resource
// links with a path to the local copy passed in the message payload.
-IPC_MESSAGE_ROUTED1(FrameMsg_GetSerializedHtmlWithLocalLinks,
- FrameMsg_GetSerializedHtmlWithLocalLinks_Map)
+IPC_MESSAGE_ROUTED2(FrameMsg_GetSerializedHtmlWithLocalLinks,
+ FrameMsg_GetSerializedHtmlWithLocalLinks_UrlMap,
+ FrameMsg_GetSerializedHtmlWithLocalLinks_FrameRoutingIdMap)
// Serialize target frame and its resources into MHTML and write it into the
// provided destination file handle. Note that when serializing multiple

Powered by Google App Engine
This is Rietveld 408576698