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

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

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

Powered by Google App Engine
This is Rietveld 408576698