| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 9 |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // Counts interruptions that happened at the end of the download. | 63 // Counts interruptions that happened at the end of the download. |
| 64 INTERRUPTED_AT_END_COUNT, | 64 INTERRUPTED_AT_END_COUNT, |
| 65 | 65 |
| 66 // Counts errors due to writes to BaseFiles that have been detached already. | 66 // Counts errors due to writes to BaseFiles that have been detached already. |
| 67 // This can happen when saving web pages as complete packages. It happens | 67 // This can happen when saving web pages as complete packages. It happens |
| 68 // when we get messages to append data to files that have already finished and | 68 // when we get messages to append data to files that have already finished and |
| 69 // been detached, but haven't yet been removed from the list of files in | 69 // been detached, but haven't yet been removed from the list of files in |
| 70 // progress. | 70 // progress. |
| 71 APPEND_TO_DETACHED_FILE_COUNT, | 71 APPEND_TO_DETACHED_FILE_COUNT, |
| 72 | 72 |
| 73 // Counts the number of instances where the downloaded file is missing after a | 73 // (Deprecated) Counts the number of instances where the downloaded file is |
| 74 // successful invocation of ScanAndSaveDownloadedFile(). | 74 // missing after a successful invocation of ScanAndSaveDownloadedFile(). |
| 75 FILE_MISSING_AFTER_SUCCESSFUL_SCAN_COUNT, | 75 DOWNLOAD_COUNT_UNUSED_14, |
| 76 | 76 |
| 77 // (Deprecated) Count of downloads with a strong ETag and specified | 77 // (Deprecated) Count of downloads with a strong ETag and specified |
| 78 // 'Accept-Ranges: bytes'. | 78 // 'Accept-Ranges: bytes'. |
| 79 DOWNLOAD_COUNT_UNUSED_15, | 79 DOWNLOAD_COUNT_UNUSED_15, |
| 80 | 80 |
| 81 // Count of downloads that didn't have a valid WebContents at the time it was | 81 // Count of downloads that didn't have a valid WebContents at the time it was |
| 82 // interrupted. | 82 // interrupted. |
| 83 INTERRUPTED_WITHOUT_WEBCONTENTS, | 83 INTERRUPTED_WITHOUT_WEBCONTENTS, |
| 84 | 84 |
| 85 // Count of downloads that supplies a strong validator (implying byte-wise | 85 // Count of downloads that supplies a strong validator (implying byte-wise |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 | 245 |
| 246 // Record the state of the origin information across a download resumption | 246 // Record the state of the origin information across a download resumption |
| 247 // request. |state| is a combination of values from OriginStateOnResumption | 247 // request. |state| is a combination of values from OriginStateOnResumption |
| 248 // enum. | 248 // enum. |
| 249 void RecordOriginStateOnResumption(bool is_partial, | 249 void RecordOriginStateOnResumption(bool is_partial, |
| 250 int state); | 250 int state); |
| 251 | 251 |
| 252 } // namespace content | 252 } // namespace content |
| 253 | 253 |
| 254 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATS_H_ | 254 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATS_H_ |
| OLD | NEW |