| 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/browser/download/download_persistent_store_info.h" | 5 #include "content/browser/download/download_persistent_store_info.h" |
| 6 | 6 |
| 7 #include "content/browser/download/download_item.h" | 7 #include "content/browser/download/download_item.h" |
| 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(0), | 12 state(0), |
| 13 db_handle(0), | 13 db_handle(0), |
| 14 opened(false) { | 14 opened(false), |
| 15 local_id(-1), |
| 16 last_reason(DOWNLOAD_INTERRUPT_REASON_NONE) { |
| 15 } | 17 } |
| 16 | 18 |
| 17 DownloadPersistentStoreInfo::DownloadPersistentStoreInfo( | 19 DownloadPersistentStoreInfo::DownloadPersistentStoreInfo( |
| 18 const FilePath& path, | 20 const FilePath& path, |
| 19 const GURL& url, | 21 const GURL& url, |
| 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 int32 download_state, | 27 int32 download_state, |
| 26 int64 handle, | 28 int64 handle, |
| 27 bool download_opened) | 29 bool download_opened, |
| 30 int32 local_id, |
| 31 const std::string& hash, |
| 32 const std::string& last_modified, |
| 33 const std::string& etag, |
| 34 InterruptReason reason) |
| 28 : path(path), | 35 : path(path), |
| 29 url(url), | 36 url(url), |
| 30 referrer_url(referrer), | 37 referrer_url(referrer), |
| 31 start_time(start), | 38 start_time(start), |
| 32 end_time(end), | 39 end_time(end), |
| 33 received_bytes(received), | 40 received_bytes(received), |
| 34 total_bytes(total), | 41 total_bytes(total), |
| 35 state(download_state), | 42 state(download_state), |
| 36 db_handle(handle), | 43 db_handle(handle), |
| 37 opened(download_opened) { | 44 opened(download_opened), |
| 45 local_id(local_id), |
| 46 hash(hash), |
| 47 last_modified_time(last_modified), |
| 48 etag(etag), |
| 49 last_reason(reason) { |
| 38 } | 50 } |
| 39 | 51 |
| 40 DownloadPersistentStoreInfo::~DownloadPersistentStoreInfo() { | 52 DownloadPersistentStoreInfo::~DownloadPersistentStoreInfo() { |
| 41 } | 53 } |
| OLD | NEW |