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

Side by Side Diff: content/browser/download/download_persistent_store_info.cc

Issue 8008021: Add new UMA stats to get a handle on Downloads UI Usage (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: fixed tests Created 9 years, 2 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
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/browser/download/download_persistent_store_info.h" 5 #include "content/browser/download/download_persistent_store_info.h"
6 6
7 #include "content/browser/download/download_item.h" 7 #include "content/browser/download/download_item.h"
8 8
9 DownloadPersistentStoreInfo::DownloadPersistentStoreInfo() 9 DownloadPersistentStoreInfo::DownloadPersistentStoreInfo()
10 : received_bytes(0), 10 : received_bytes(0),
11 total_bytes(0), 11 total_bytes(0),
12 state(0), 12 state(0),
13 db_handle(0) { 13 db_handle(0),
14 opened(false) {
14 } 15 }
15 16
16 DownloadPersistentStoreInfo::DownloadPersistentStoreInfo( 17 DownloadPersistentStoreInfo::DownloadPersistentStoreInfo(
17 const FilePath& path, 18 const FilePath& path,
18 const GURL& url, 19 const GURL& url,
19 const GURL& referrer, 20 const GURL& referrer,
20 const base::Time& start, 21 const base::Time& start,
22 const base::Time& end,
21 int64 received, 23 int64 received,
22 int64 total, 24 int64 total,
23 int32 download_state, 25 int32 download_state,
24 int64 handle) 26 int64 handle,
27 bool opend)
25 : path(path), 28 : path(path),
26 url(url), 29 url(url),
27 referrer_url(referrer), 30 referrer_url(referrer),
28 start_time(start), 31 start_time(start),
32 end_time(end),
29 received_bytes(received), 33 received_bytes(received),
30 total_bytes(total), 34 total_bytes(total),
31 state(download_state), 35 state(download_state),
32 db_handle(handle) { 36 db_handle(handle),
37 opened(opend) {
33 } 38 }
34 39
35 DownloadPersistentStoreInfo::~DownloadPersistentStoreInfo() { 40 DownloadPersistentStoreInfo::~DownloadPersistentStoreInfo() {
36 } 41 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698