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

Side by Side Diff: chrome/browser/history/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
« no previous file with comments | « chrome/browser/history/download_row.h ('k') | chrome/browser/history/history_backend.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome/browser/history/download_row.h"
6
7 namespace history {
8
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
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 std::string& mime_type,
25 const std::string& original_mime_type,
26 const base::Time& start,
27 const base::Time& end,
28 const std::string& etag,
29 const std::string& last_modified,
30 int64 received,
31 int64 total,
32 content::DownloadItem::DownloadState download_state,
33 content::DownloadDangerType danger_type,
34 content::DownloadInterruptReason interrupt_reason,
35 uint32 id,
36 bool download_opened,
37 const std::string& ext_id,
38 const std::string& ext_name)
39 : current_path(current_path),
40 target_path(target_path),
41 url_chain(url_chain),
42 referrer_url(referrer),
43 mime_type(mime_type),
44 original_mime_type(original_mime_type),
45 start_time(start),
46 end_time(end),
47 etag(etag),
48 last_modified(last_modified),
49 received_bytes(received),
50 total_bytes(total),
51 state(download_state),
52 danger_type(danger_type),
53 interrupt_reason(interrupt_reason),
54 id(id),
55 opened(download_opened),
56 by_ext_id(ext_id),
57 by_ext_name(ext_name) {
58 }
59
60 DownloadRow::~DownloadRow() {
61 }
62
63 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/history/download_row.h ('k') | chrome/browser/history/history_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698