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

Side by Side Diff: content/browser/download/download_stats.h

Issue 8381024: more content exports. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: don't link installer_unittests, setup against content Created 9 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 // Holds helpers for gathering UMA stats about downloads. 5 // Holds helpers for gathering UMA stats about downloads.
6 6
7 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATS_H_ 7 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATS_H_
8 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATS_H_ 8 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATS_H_
9 #pragma once 9 #pragma once
10 10
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // download completed. 96 // download completed.
97 void RecordOpen(const base::Time& end, bool first); 97 void RecordOpen(const base::Time& end, bool first);
98 98
99 // Record the number of items that are in the history at the time that a 99 // Record the number of items that are in the history at the time that a
100 // new download is added to the history. 100 // new download is added to the history.
101 void RecordHistorySize(int size); 101 void RecordHistorySize(int size);
102 102
103 // Record the total number of items and the number of in-progress items showing 103 // Record the total number of items and the number of in-progress items showing
104 // in the shelf when it closes. Set |autoclose| to true when the shelf is 104 // in the shelf when it closes. Set |autoclose| to true when the shelf is
105 // closing itself, false when the user explicitly closed it. 105 // closing itself, false when the user explicitly closed it.
106 void RecordShelfClose(int size, int in_progress, bool autoclose); 106 CONTENT_EXPORT void RecordShelfClose(int size, int in_progress, bool autoclose);
107 107
108 // Record the number of downloads removed by ClearAll. 108 // Record the number of downloads removed by ClearAll.
109 void RecordClearAllSize(int size); 109 void RecordClearAllSize(int size);
110 110
111 // Record the number of completed unopened downloads when a download is opened. 111 // Record the number of completed unopened downloads when a download is opened.
112 void RecordOpensOutstanding(int size); 112 void RecordOpensOutstanding(int size);
113 113
114 } // namespace download_stats 114 } // namespace download_stats
115 115
116 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATS_H_ 116 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATS_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_buffer.h ('k') | content/browser/net/url_request_slow_download_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698