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

Side by Side Diff: content/browser/download/save_types.h

Issue 2075273002: Resource requests from Save-Page-As should go through CanRequestURL checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated docs. Created 4 years, 5 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_TYPES_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_SAVE_TYPES_H_
6 #define CONTENT_BROWSER_DOWNLOAD_SAVE_TYPES_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_SAVE_TYPES_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 21 matching lines...) Expand all
32 // when processing each save item job. 32 // when processing each save item job.
33 struct SaveFileCreateInfo { 33 struct SaveFileCreateInfo {
34 enum SaveFileSource { 34 enum SaveFileSource {
35 // This type indicates the source is not set. 35 // This type indicates the source is not set.
36 SAVE_FILE_FROM_UNKNOWN = -1, 36 SAVE_FILE_FROM_UNKNOWN = -1,
37 // This type indicates the save item needs to be retrieved from the network. 37 // This type indicates the save item needs to be retrieved from the network.
38 SAVE_FILE_FROM_NET = 0, 38 SAVE_FILE_FROM_NET = 0,
39 // This type indicates the save item needs to be retrieved from serializing 39 // This type indicates the save item needs to be retrieved from serializing
40 // DOM. 40 // DOM.
41 SAVE_FILE_FROM_DOM, 41 SAVE_FILE_FROM_DOM,
42 // This type indicates the save item needs to be retrieved from local file
43 // system.
44 SAVE_FILE_FROM_FILE
45 }; 42 };
46 43
47 // Constructor for SAVE_FILE_FROM_DOM and/or SAVE_FILE_FROM_FILE. 44 // Constructor for SAVE_FILE_FROM_DOM and/or SAVE_FILE_FROM_FILE.
48 SaveFileCreateInfo(const base::FilePath& path, 45 SaveFileCreateInfo(const base::FilePath& path,
49 const GURL& url, 46 const GURL& url,
50 SaveItemId save_item_id, 47 SaveItemId save_item_id,
51 SavePackageId save_package_id, 48 SavePackageId save_package_id,
52 int render_process_id, 49 int render_process_id,
53 int render_frame_routing_id, 50 int render_frame_routing_id,
54 SaveFileSource save_source); 51 SaveFileSource save_source);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 std::string content_disposition; 85 std::string content_disposition;
89 // Total bytes of saved file. 86 // Total bytes of saved file.
90 int64_t total_bytes; 87 int64_t total_bytes;
91 // Source type of saved file. 88 // Source type of saved file.
92 SaveFileSource save_source; 89 SaveFileSource save_source;
93 }; 90 };
94 91
95 } // namespace content 92 } // namespace content
96 93
97 #endif // CONTENT_BROWSER_DOWNLOAD_SAVE_TYPES_H_ 94 #endif // CONTENT_BROWSER_DOWNLOAD_SAVE_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698