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

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

Issue 10915180: Make DownloadHistory observe manager, items (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: @r166680 Created 8 years, 1 month 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
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 "content/public/browser/download_persistent_store_info.h" 5 #include "chrome/browser/history/download_persistent_store_info.h"
6
7 namespace content {
8 6
9 DownloadPersistentStoreInfo::DownloadPersistentStoreInfo() 7 DownloadPersistentStoreInfo::DownloadPersistentStoreInfo()
10 : received_bytes(0), 8 : received_bytes(0),
11 total_bytes(0), 9 total_bytes(0),
12 state(DownloadItem::IN_PROGRESS), 10 state(content::DownloadItem::IN_PROGRESS),
13 db_handle(0), 11 db_handle(0),
14 opened(false) { 12 opened(false) {
15 } 13 }
16 14
17 DownloadPersistentStoreInfo::DownloadPersistentStoreInfo( 15 DownloadPersistentStoreInfo::DownloadPersistentStoreInfo(
18 const FilePath& path, 16 const FilePath& path,
19 const GURL& url, 17 const GURL& url,
20 const GURL& referrer, 18 const GURL& referrer,
21 const base::Time& start, 19 const base::Time& start,
22 const base::Time& end, 20 const base::Time& end,
23 int64 received, 21 int64 received,
24 int64 total, 22 int64 total,
25 DownloadItem::DownloadState download_state, 23 content::DownloadItem::DownloadState download_state,
26 int64 handle, 24 int64 handle,
27 bool download_opened) 25 bool download_opened)
28 : path(path), 26 : path(path),
29 url(url), 27 url(url),
30 referrer_url(referrer), 28 referrer_url(referrer),
31 start_time(start), 29 start_time(start),
32 end_time(end), 30 end_time(end),
33 received_bytes(received), 31 received_bytes(received),
34 total_bytes(total), 32 total_bytes(total),
35 state(download_state), 33 state(download_state),
36 db_handle(handle), 34 db_handle(handle),
37 opened(download_opened) { 35 opened(download_opened) {
38 } 36 }
39 37
40 DownloadPersistentStoreInfo::~DownloadPersistentStoreInfo() { 38 DownloadPersistentStoreInfo::~DownloadPersistentStoreInfo() {
41 } 39 }
42
43 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698