| OLD | NEW |
| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 // in the shelf when it closes. Set |autoclose| to true when the shelf is | 122 // in the shelf when it closes. Set |autoclose| to true when the shelf is |
| 123 // closing itself, false when the user explicitly closed it. | 123 // closing itself, false when the user explicitly closed it. |
| 124 CONTENT_EXPORT void RecordShelfClose(int size, int in_progress, bool autoclose); | 124 CONTENT_EXPORT void RecordShelfClose(int size, int in_progress, bool autoclose); |
| 125 | 125 |
| 126 // Record the number of downloads removed by ClearAll. | 126 // Record the number of downloads removed by ClearAll. |
| 127 void RecordClearAllSize(int size); | 127 void RecordClearAllSize(int size); |
| 128 | 128 |
| 129 // Record the number of completed unopened downloads when a download is opened. | 129 // Record the number of completed unopened downloads when a download is opened. |
| 130 void RecordOpensOutstanding(int size); | 130 void RecordOpensOutstanding(int size); |
| 131 | 131 |
| 132 // Record how many DownloadItem::Observer::OnDownloadUpdated are irrelevant to |
| 133 // the extensions api compared to the number that are relevant. |
| 134 CONTENT_EXPORT void RecordOnChanged(int percent); |
| 135 |
| 132 } // namespace download_stats | 136 } // namespace download_stats |
| 133 | 137 |
| 134 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATS_H_ | 138 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATS_H_ |
| OLD | NEW |