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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "content/browser/download/save_types.h" 5 #include "content/browser/download/save_types.h"
6 6
7 #include "base/files/file_path.h"
8
7 namespace content { 9 namespace content {
8 10
9 SaveFileCreateInfo::SaveFileCreateInfo(const base::FilePath& path, 11 SaveFileCreateInfo::SaveFileCreateInfo(const base::FilePath& path,
10 const GURL& url, 12 const GURL& url,
11 SaveFileSource save_source, 13 int save_item_id,
12 int32 save_id) 14 int save_package_id,
15 int render_process_id,
16 int render_frame_routing_id,
17 SaveFileSource save_source)
13 : path(path), 18 : path(path),
14 url(url), 19 url(url),
15 save_id(save_id), 20 save_item_id(save_item_id),
16 save_package_id(-1), 21 save_package_id(save_package_id),
17 render_process_id(-1), 22 render_process_id(render_process_id),
18 render_frame_routing_id(-1), 23 render_frame_routing_id(render_frame_routing_id),
19 request_id(-1), 24 request_id(-1),
20 total_bytes(0), 25 total_bytes(0),
21 save_source(save_source) {} 26 save_source(save_source) {}
22 27
23 SaveFileCreateInfo::SaveFileCreateInfo() 28 SaveFileCreateInfo::SaveFileCreateInfo(const GURL& url,
24 : save_id(-1), 29 const GURL& final_url,
25 save_package_id(-1), 30 int save_item_id,
26 render_process_id(-1), 31 int save_package_id,
27 render_frame_routing_id(-1), 32 int render_process_id,
28 request_id(-1), 33 int render_frame_routing_id,
29 total_bytes(0), 34 int request_id,
30 save_source(SAVE_FILE_FROM_UNKNOWN) {} 35 const std::string& content_disposition,
36 int64 total_bytes)
37 : url(url),
38 final_url(final_url),
39 save_item_id(save_item_id),
40 save_package_id(save_package_id),
41 render_process_id(render_process_id),
42 render_frame_routing_id(render_frame_routing_id),
43 request_id(request_id),
44 content_disposition(content_disposition),
45 total_bytes(total_bytes),
46 save_source(SaveFileCreateInfo::SAVE_FILE_FROM_NET) {}
31 47
32 SaveFileCreateInfo::~SaveFileCreateInfo() {} 48 SaveFileCreateInfo::~SaveFileCreateInfo() {}
33 49
34 } // namespace content 50 } // namespace content
OLDNEW
« 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