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

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

Powered by Google App Engine
This is Rietveld 408576698