Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1264)

Side by Side Diff: components/history/core/browser/download_row.cc

Issue 833033002: Remove dependency on //content from history DownloadDatabase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove obsolete #include Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 "components/history/core/browser/download_row.h"
6
7 #include "components/history/core/browser/download_constants.h"
8
9 namespace history {
10
11 DownloadRow::DownloadRow()
12 : received_bytes(0),
13 total_bytes(0),
14 state(DownloadState::IN_PROGRESS),
15 danger_type(DownloadDangerType::NOT_DANGEROUS),
16 id(kInvalidDownloadId),
17 opened(false) {
18 // |interrupt_reason| is left undefined by this constructor as the value
19 // has no meaning unless |state| is equal to kStateInterrupted.
20 }
21
22 DownloadRow::DownloadRow(const base::FilePath& current_path,
23 const base::FilePath& target_path,
24 const std::vector<GURL>& url_chain,
25 const GURL& referrer,
26 const std::string& mime_type,
27 const std::string& original_mime_type,
28 const base::Time& start,
29 const base::Time& end,
30 const std::string& etag,
31 const std::string& last_modified,
32 int64 received,
33 int64 total,
34 DownloadState download_state,
35 DownloadDangerType danger_type,
36 DownloadInterruptReason interrupt_reason,
37 DownloadId id,
38 bool download_opened,
39 const std::string& ext_id,
40 const std::string& ext_name)
41 : current_path(current_path),
42 target_path(target_path),
43 url_chain(url_chain),
44 referrer_url(referrer),
45 mime_type(mime_type),
46 original_mime_type(original_mime_type),
47 start_time(start),
48 end_time(end),
49 etag(etag),
50 last_modified(last_modified),
51 received_bytes(received),
52 total_bytes(total),
53 state(download_state),
54 danger_type(danger_type),
55 interrupt_reason(interrupt_reason),
56 id(id),
57 opened(download_opened),
58 by_ext_id(ext_id),
59 by_ext_name(ext_name) {
60 }
61
62 DownloadRow::~DownloadRow() {
63 }
64
65 } // namespace history
OLDNEW
« no previous file with comments | « components/history/core/browser/download_row.h ('k') | components/history/core/browser/download_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698