OLD | NEW |
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 "chrome/browser/history/download_create_info.h" | 5 #include "chrome/browser/history/download_create_info.h" |
6 | 6 |
7 DownloadCreateInfo::DownloadCreateInfo(const FilePath& path, | 7 DownloadCreateInfo::DownloadCreateInfo(const FilePath& path, |
8 const GURL& url, | 8 const GURL& url, |
9 base::Time start_time, | 9 base::Time start_time, |
10 int64 received_bytes, | 10 int64 received_bytes, |
11 int64 total_bytes, | 11 int64 total_bytes, |
12 int32 state, | 12 int32 state, |
13 int32 download_id) | 13 int32 download_id) |
14 : path(path), | 14 : path(path), |
15 url(url), | 15 url(url), |
16 path_uniquifier(0), | 16 path_uniquifier(0), |
17 start_time(start_time), | 17 start_time(start_time), |
18 received_bytes(received_bytes), | 18 received_bytes(received_bytes), |
19 total_bytes(total_bytes), | 19 total_bytes(total_bytes), |
20 state(state), | 20 state(state), |
21 download_id(download_id), | 21 download_id(download_id), |
22 child_id(-1), | 22 child_id(-1), |
23 render_view_id(-1), | 23 render_view_id(-1), |
24 request_id(-1), | 24 request_id(-1), |
25 db_handle(0), | 25 db_handle(0), |
26 prompt_user_for_save_location(false), | 26 prompt_user_for_save_location(false), |
27 is_dangerous(false), | 27 is_dangerous(false), |
| 28 is_partial_download(false), |
28 is_extension_install(false) { | 29 is_extension_install(false) { |
29 } | 30 } |
30 | 31 |
31 DownloadCreateInfo::DownloadCreateInfo() | 32 DownloadCreateInfo::DownloadCreateInfo() |
32 : path_uniquifier(0), | 33 : path_uniquifier(0), |
33 received_bytes(0), | 34 received_bytes(0), |
34 total_bytes(0), | 35 total_bytes(0), |
35 state(-1), | 36 state(-1), |
36 download_id(-1), | 37 download_id(-1), |
37 child_id(-1), | 38 child_id(-1), |
38 render_view_id(-1), | 39 render_view_id(-1), |
39 request_id(-1), | 40 request_id(-1), |
40 db_handle(0), | 41 db_handle(0), |
41 prompt_user_for_save_location(false), | 42 prompt_user_for_save_location(false), |
42 is_dangerous(false), | 43 is_dangerous(false), |
| 44 is_partial_download(false), |
43 is_extension_install(false) { | 45 is_extension_install(false) { |
44 } | 46 } |
45 | 47 |
46 DownloadCreateInfo::~DownloadCreateInfo() { | 48 DownloadCreateInfo::~DownloadCreateInfo() { |
47 } | 49 } |
OLD | NEW |