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

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

Issue 2123023002: [Downloads] Consolidate MOTW annotation APIs into a single API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move-safe-util-to-downloads
Patch Set: [win] Verify that the Zone.Identifier stream has the correct contents. Created 4 years, 3 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
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698