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

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

Issue 1529363006: Introducing SavePackageId and SaveItemId as distinct IdType<...>-based types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed CR feedback from Daniel. 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) 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" 7 #include "base/files/file_path.h"
8 8
9 namespace content { 9 namespace content {
10 10
11 SaveFileCreateInfo::SaveFileCreateInfo(const base::FilePath& path, 11 SaveFileCreateInfo::SaveFileCreateInfo(const base::FilePath& path,
12 const GURL& url, 12 const GURL& url,
13 int save_item_id, 13 SaveItemId save_item_id,
14 int save_package_id, 14 SavePackageId save_package_id,
15 int render_process_id, 15 int render_process_id,
16 int render_frame_routing_id, 16 int render_frame_routing_id,
17 SaveFileSource save_source) 17 SaveFileSource save_source)
18 : path(path), 18 : path(path),
19 url(url), 19 url(url),
20 save_item_id(save_item_id), 20 save_item_id(save_item_id),
21 save_package_id(save_package_id), 21 save_package_id(save_package_id),
22 render_process_id(render_process_id), 22 render_process_id(render_process_id),
23 render_frame_routing_id(render_frame_routing_id), 23 render_frame_routing_id(render_frame_routing_id),
24 request_id(-1), 24 request_id(-1),
25 total_bytes(0), 25 total_bytes(0),
26 save_source(save_source) {} 26 save_source(save_source) {}
27 27
28 SaveFileCreateInfo::SaveFileCreateInfo(const GURL& url, 28 SaveFileCreateInfo::SaveFileCreateInfo(const GURL& url,
29 const GURL& final_url, 29 const GURL& final_url,
30 int save_item_id, 30 SaveItemId save_item_id,
31 int save_package_id, 31 SavePackageId save_package_id,
32 int render_process_id, 32 int render_process_id,
33 int render_frame_routing_id, 33 int render_frame_routing_id,
34 int request_id, 34 int request_id,
35 const std::string& content_disposition, 35 const std::string& content_disposition,
36 int64_t total_bytes) 36 int64_t total_bytes)
37 : url(url), 37 : url(url),
38 final_url(final_url), 38 final_url(final_url),
39 save_item_id(save_item_id), 39 save_item_id(save_item_id),
40 save_package_id(save_package_id), 40 save_package_id(save_package_id),
41 render_process_id(render_process_id), 41 render_process_id(render_process_id),
42 render_frame_routing_id(render_frame_routing_id), 42 render_frame_routing_id(render_frame_routing_id),
43 request_id(request_id), 43 request_id(request_id),
44 content_disposition(content_disposition), 44 content_disposition(content_disposition),
45 total_bytes(total_bytes), 45 total_bytes(total_bytes),
46 save_source(SaveFileCreateInfo::SAVE_FILE_FROM_NET) {} 46 save_source(SaveFileCreateInfo::SAVE_FILE_FROM_NET) {}
47 47
48 SaveFileCreateInfo::~SaveFileCreateInfo() {} 48 SaveFileCreateInfo::~SaveFileCreateInfo() {}
49 49
50 } // 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