• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_row.h"
6 
7 namespace history {
8 
DownloadRow()9 DownloadRow::DownloadRow()
10     : received_bytes(0),
11       total_bytes(0),
12       state(content::DownloadItem::IN_PROGRESS),
13       danger_type(content::DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS),
14       interrupt_reason(content::DOWNLOAD_INTERRUPT_REASON_NONE),
15       id(content::DownloadItem::kInvalidId),
16       opened(false) {
17 }
18 
DownloadRow(const base::FilePath & current_path,const base::FilePath & target_path,const std::vector<GURL> & url_chain,const GURL & referrer,const base::Time & start,const base::Time & end,const std::string & etag,const std::string & last_modified,int64 received,int64 total,content::DownloadItem::DownloadState download_state,content::DownloadDangerType danger_type,content::DownloadInterruptReason interrupt_reason,uint32 id,bool download_opened,const std::string & ext_id,const std::string & ext_name)19 DownloadRow::DownloadRow(
20     const base::FilePath& current_path,
21     const base::FilePath& target_path,
22     const std::vector<GURL>& url_chain,
23     const GURL& referrer,
24     const base::Time& start,
25     const base::Time& end,
26     const std::string& etag,
27     const std::string& last_modified,
28     int64 received,
29     int64 total,
30     content::DownloadItem::DownloadState download_state,
31     content::DownloadDangerType danger_type,
32     content::DownloadInterruptReason interrupt_reason,
33     uint32 id,
34     bool download_opened,
35     const std::string& ext_id,
36     const std::string& ext_name)
37     : current_path(current_path),
38       target_path(target_path),
39       url_chain(url_chain),
40       referrer_url(referrer),
41       start_time(start),
42       end_time(end),
43       etag(etag),
44       last_modified(last_modified),
45       received_bytes(received),
46       total_bytes(total),
47       state(download_state),
48       danger_type(danger_type),
49       interrupt_reason(interrupt_reason),
50       id(id),
51       opened(download_opened),
52       by_ext_id(ext_id),
53       by_ext_name(ext_name) {
54 }
55 
~DownloadRow()56 DownloadRow::~DownloadRow() {
57 }
58 
59 }  // namespace history
60