OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/public/browser/download_persistent_store_info.h" | 5 #include "content/public/browser/download_persistent_store_info.h" |
6 | 6 |
7 namespace content { | 7 namespace content { |
8 | 8 |
9 DownloadPersistentStoreInfo::DownloadPersistentStoreInfo() | 9 DownloadPersistentStoreInfo::DownloadPersistentStoreInfo() |
10 : received_bytes(0), | 10 : received_bytes(0), |
11 total_bytes(0), | 11 total_bytes(0), |
12 state(DownloadItem::IN_PROGRESS), | 12 state(DownloadItem::IN_PROGRESS), |
| 13 interrupt_reason(DOWNLOAD_INTERRUPT_REASON_NONE), |
13 db_handle(0), | 14 db_handle(0), |
14 opened(false) { | 15 opened(false) { |
15 } | 16 } |
16 | 17 |
17 DownloadPersistentStoreInfo::DownloadPersistentStoreInfo( | 18 DownloadPersistentStoreInfo::DownloadPersistentStoreInfo( |
18 const FilePath& path, | 19 const FilePath& target_path, |
19 const GURL& url, | 20 const FilePath& current_path, |
| 21 const std::vector<GURL>& url_chain, |
20 const GURL& referrer, | 22 const GURL& referrer, |
21 const base::Time& start, | 23 const base::Time& start, |
22 const base::Time& end, | 24 const base::Time& end, |
23 int64 received, | 25 int64 received, |
24 int64 total, | 26 int64 total, |
25 DownloadItem::DownloadState download_state, | 27 DownloadItem::DownloadState download_state, |
| 28 DownloadInterruptReason interrupt_reason, |
26 int64 handle, | 29 int64 handle, |
27 bool download_opened) | 30 bool download_opened) |
28 : path(path), | 31 : target_path(target_path), |
29 url(url), | 32 current_path(current_path), |
| 33 url_chain(url_chain), |
30 referrer_url(referrer), | 34 referrer_url(referrer), |
31 start_time(start), | 35 start_time(start), |
32 end_time(end), | 36 end_time(end), |
33 received_bytes(received), | 37 received_bytes(received), |
34 total_bytes(total), | 38 total_bytes(total), |
35 state(download_state), | 39 state(download_state), |
| 40 interrupt_reason(interrupt_reason), |
36 db_handle(handle), | 41 db_handle(handle), |
37 opened(download_opened) { | 42 opened(download_opened) { |
38 } | 43 } |
39 | 44 |
40 DownloadPersistentStoreInfo::~DownloadPersistentStoreInfo() { | 45 DownloadPersistentStoreInfo::~DownloadPersistentStoreInfo() { |
41 } | 46 } |
42 | 47 |
43 } // namespace content | 48 } // namespace content |
OLD | NEW |