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

Side by Side Diff: content/browser/download/save_package.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: Method signature changes: rewriteFrameSource + s/const WebFrame&/WebFrame*/ 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_
6 #define CONTENT_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 // Response from |sender| frame to GetSavableResourceLinksForFrame request. 203 // Response from |sender| frame to GetSavableResourceLinksForFrame request.
204 void OnSavableResourceLinksResponse( 204 void OnSavableResourceLinksResponse(
205 RenderFrameHostImpl* sender, 205 RenderFrameHostImpl* sender,
206 const std::vector<GURL>& resources_list, 206 const std::vector<GURL>& resources_list,
207 const Referrer& referrer, 207 const Referrer& referrer,
208 const std::vector<SavableSubframe>& subframes); 208 const std::vector<SavableSubframe>& subframes);
209 209
210 // Helper for finding or creating a SaveItem with the given parameters. 210 // Helper for finding or creating a SaveItem with the given parameters.
211 SaveItem* CreatePendingSaveItem( 211 SaveItem* CreatePendingSaveItem(
212 int container_frame_tree_node_id, 212 int container_frame_tree_node_id,
213 int save_item_frame_tree_node_id,
213 const GURL& url, 214 const GURL& url,
214 const Referrer& referrer, 215 const Referrer& referrer,
215 SaveFileCreateInfo::SaveFileSource save_source); 216 SaveFileCreateInfo::SaveFileSource save_source);
216 217
217 // Helper for finding a SaveItem with the given url, or falling back to 218 // Helper for finding a SaveItem with the given url, or falling back to
218 // creating a SaveItem with the given parameters. 219 // creating a SaveItem with the given parameters.
219 SaveItem* CreatePendingSaveItemDeduplicatingByUrl( 220 SaveItem* CreatePendingSaveItemDeduplicatingByUrl(
220 int container_frame_tree_node_id, 221 int container_frame_tree_node_id,
222 int save_item_frame_tree_node_id,
221 const GURL& url, 223 const GURL& url,
222 const Referrer& referrer, 224 const Referrer& referrer,
223 SaveFileCreateInfo::SaveFileSource save_source); 225 SaveFileCreateInfo::SaveFileSource save_source);
224 226
225 // Helper to enqueue a savable resource reported by 227 // Helper to enqueue a savable resource reported by
226 // GetSavableResourceLinksForFrame. 228 // GetSavableResourceLinksForFrame.
227 void EnqueueSavableResource(int container_frame_tree_node_id, 229 void EnqueueSavableResource(int container_frame_tree_node_id,
228 const GURL& url, 230 const GURL& url,
229 const Referrer& referrer); 231 const Referrer& referrer);
230 // Helper to enqueue a subframe reported by GetSavableResourceLinksForFrame. 232 // Helper to enqueue a subframe reported by GetSavableResourceLinksForFrame.
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 friend class SavePackageTest; 418 friend class SavePackageTest;
417 FRIEND_TEST_ALL_PREFIXES(SavePackageTest, TestSuggestedSaveNames); 419 FRIEND_TEST_ALL_PREFIXES(SavePackageTest, TestSuggestedSaveNames);
418 FRIEND_TEST_ALL_PREFIXES(SavePackageTest, TestLongSafePureFilename); 420 FRIEND_TEST_ALL_PREFIXES(SavePackageTest, TestLongSafePureFilename);
419 421
420 DISALLOW_COPY_AND_ASSIGN(SavePackage); 422 DISALLOW_COPY_AND_ASSIGN(SavePackage);
421 }; 423 };
422 424
423 } // namespace content 425 } // namespace content
424 426
425 #endif // CONTENT_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ 427 #endif // CONTENT_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698