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

Side by Side Diff: chrome/browser/history/download_history_info.cc

Issue 7192016: chrome.experimental.downloads (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: merged db_handle, id; onCreated, onErased Created 9 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/history/download_history_info.h ('k') | chrome/browser/history/history.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/history/download_history_info.h" 5 #include "chrome/browser/history/download_history_info.h"
6 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, 7 DownloadHistoryInfo::DownloadHistoryInfo(const FilePath& path,
17 const GURL& url, 8 const GURL& url,
18 const GURL& referrer, 9 const GURL& referrer,
19 const base::Time& start, 10 const base::Time& start,
20 int64 received, 11 int64 received,
21 int64 total, 12 int64 total,
22 int32 download_state, 13 int32 download_state,
23 int64 handle) 14 int32 ident)
24 : path(path), 15 : path(path),
25 url(url), 16 url(url),
26 referrer_url(referrer), 17 referrer_url(referrer),
27 start_time(start), 18 start_time(start),
28 received_bytes(received), 19 received_bytes(received),
29 total_bytes(total), 20 total_bytes(total),
30 state(download_state), 21 state(download_state),
31 db_handle(handle) { 22 id(ident) {
32 } 23 }
33
34 DownloadHistoryInfo::~DownloadHistoryInfo() { // For linux-clang.
35 }
OLDNEW
« no previous file with comments | « chrome/browser/history/download_history_info.h ('k') | chrome/browser/history/history.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698