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

Unified Diff: content/browser/download/save_types.cc

Issue 1484093002: Allowing multiple SaveItems to have same URLs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nested-frames-more-involved-fix
Patch Set: Rebasing... Created 5 years 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
« no previous file with comments | « content/browser/download/save_types.h ('k') | content/browser/loader/resource_dispatcher_host_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/save_types.cc
diff --git a/content/browser/download/save_types.cc b/content/browser/download/save_types.cc
index b2965326e62152bcc86c349d0cddc04b30444f8a..d9cc0fce98c455f8f2275b476d0bb53e2e4ae7bd 100644
--- a/content/browser/download/save_types.cc
+++ b/content/browser/download/save_types.cc
@@ -4,30 +4,46 @@
#include "content/browser/download/save_types.h"
+#include "base/files/file_path.h"
+
namespace content {
SaveFileCreateInfo::SaveFileCreateInfo(const base::FilePath& path,
const GURL& url,
- SaveFileSource save_source,
- int32 save_id)
+ int save_item_id,
+ int save_package_id,
+ int render_process_id,
+ int render_frame_routing_id,
+ SaveFileSource save_source)
: path(path),
url(url),
- save_id(save_id),
- save_package_id(-1),
- render_process_id(-1),
- render_frame_routing_id(-1),
+ save_item_id(save_item_id),
+ save_package_id(save_package_id),
+ render_process_id(render_process_id),
+ render_frame_routing_id(render_frame_routing_id),
request_id(-1),
total_bytes(0),
save_source(save_source) {}
-SaveFileCreateInfo::SaveFileCreateInfo()
- : save_id(-1),
- save_package_id(-1),
- render_process_id(-1),
- render_frame_routing_id(-1),
- request_id(-1),
- total_bytes(0),
- save_source(SAVE_FILE_FROM_UNKNOWN) {}
+SaveFileCreateInfo::SaveFileCreateInfo(const GURL& url,
+ const GURL& final_url,
+ int save_item_id,
+ int save_package_id,
+ int render_process_id,
+ int render_frame_routing_id,
+ int request_id,
+ const std::string& content_disposition,
+ int64 total_bytes)
+ : url(url),
+ final_url(final_url),
+ save_item_id(save_item_id),
+ save_package_id(save_package_id),
+ render_process_id(render_process_id),
+ render_frame_routing_id(render_frame_routing_id),
+ request_id(request_id),
+ content_disposition(content_disposition),
+ total_bytes(total_bytes),
+ save_source(SaveFileCreateInfo::SAVE_FILE_FROM_NET) {}
SaveFileCreateInfo::~SaveFileCreateInfo() {}
« no previous file with comments | « content/browser/download/save_types.h ('k') | content/browser/loader/resource_dispatcher_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698