summaryrefslogtreecommitdiffstats
path: root/chrome/browser/history/download_row.cc
blob: 7858608ccef0ab0fd0d5dadca023a860020f2a2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/history/download_row.h"

namespace history {

DownloadRow::DownloadRow()
    : received_bytes(0),
      total_bytes(0),
      state(content::DownloadItem::IN_PROGRESS),
      danger_type(content::DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS),
      interrupt_reason(content::DOWNLOAD_INTERRUPT_REASON_NONE),
      db_handle(0),
      opened(false) {
}

DownloadRow::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,
    int64 received,
    int64 total,
    content::DownloadItem::DownloadState download_state,
    content::DownloadDangerType danger_type,
    content::DownloadInterruptReason interrupt_reason,
    int64 handle,
    bool download_opened)
    : current_path(current_path),
      target_path(target_path),
      url_chain(url_chain),
      referrer_url(referrer),
      start_time(start),
      end_time(end),
      received_bytes(received),
      total_bytes(total),
      state(download_state),
      danger_type(danger_type),
      interrupt_reason(interrupt_reason),
      db_handle(handle),
      opened(download_opened) {
}

DownloadRow::~DownloadRow() {
}

}  // namespace history