OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/history/download_history_info.h" |
| 6 |
| 7 #include "chrome/browser/download/download_item.h" |
| 8 |
| 9 DownloadHistoryInfo::DownloadHistoryInfo() |
| 10 : received_bytes(0), |
| 11 total_bytes(0), |
| 12 state(0), |
| 13 db_handle(0) { |
| 14 } |
| 15 |
| 16 DownloadHistoryInfo::DownloadHistoryInfo(const FilePath& path, |
| 17 const GURL& url, |
| 18 const GURL& referrer, |
| 19 const base::Time& start, |
| 20 int64 received, |
| 21 int64 total, |
| 22 int32 download_state, |
| 23 int64 handle) |
| 24 : path(path), |
| 25 url(url), |
| 26 referrer_url(referrer), |
| 27 start_time(start), |
| 28 received_bytes(received), |
| 29 total_bytes(total), |
| 30 state(download_state), |
| 31 db_handle(handle) { |
| 32 } |
| 33 |
| 34 DownloadHistoryInfo::~DownloadHistoryInfo() { // For linux-clang. |
| 35 } |
OLD | NEW |