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

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

Issue 11150027: Handle the case where IAttachmentExecute::Save() deletes a downloaded file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + Address comments + Update strings Created 8 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) 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 <string> 10 #include <string>
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // Counts interruptions that happened at the end of the download. 56 // Counts interruptions that happened at the end of the download.
57 INTERRUPTED_AT_END_COUNT, 57 INTERRUPTED_AT_END_COUNT,
58 58
59 // Counts errors due to writes to BaseFiles that have been detached already. 59 // Counts errors due to writes to BaseFiles that have been detached already.
60 // This can happen when saving web pages as complete packages. It happens 60 // This can happen when saving web pages as complete packages. It happens
61 // when we get messages to append data to files that have already finished and 61 // when we get messages to append data to files that have already finished and
62 // been detached, but haven't yet been removed from the list of files in 62 // been detached, but haven't yet been removed from the list of files in
63 // progress. 63 // progress.
64 APPEND_TO_DETACHED_FILE_COUNT, 64 APPEND_TO_DETACHED_FILE_COUNT,
65 65
66 // Counts the number of instances where the downloaded file is missing after a
67 // successful invocation of win_util::ScanAndSaveDownloadedFile().
68 FILE_MISSING_AFTER_SUCCESSFUL_SCAN_COUNT,
69
66 DOWNLOAD_COUNT_TYPES_LAST_ENTRY 70 DOWNLOAD_COUNT_TYPES_LAST_ENTRY
67 }; 71 };
68 72
69 enum DownloadSource { 73 enum DownloadSource {
70 // The download was initiated when the SavePackage system rejected 74 // The download was initiated when the SavePackage system rejected
71 // a Save Page As ... by returning false from 75 // a Save Page As ... by returning false from
72 // SavePackage::IsSaveableContents(). 76 // SavePackage::IsSaveableContents().
73 INITIATED_BY_SAVE_PACKAGE_ON_NON_HTML = 0, 77 INITIATED_BY_SAVE_PACKAGE_ON_NON_HTML = 0,
74 78
75 // The download was initiated by a drag and drop from a drag-and-drop 79 // The download was initiated by a drag and drop from a drag-and-drop
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 SAVE_PACKAGE_WRITE_TO_FAILED, 172 SAVE_PACKAGE_WRITE_TO_FAILED,
169 173
170 SAVE_PACKAGE_LAST_ENTRY 174 SAVE_PACKAGE_LAST_ENTRY
171 }; 175 };
172 176
173 void RecordSavePackageEvent(SavePackageEvent event); 177 void RecordSavePackageEvent(SavePackageEvent event);
174 178
175 } // namespace content 179 } // namespace content
176 180
177 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATS_H_ 181 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATS_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_net_log_parameters.h ('k') | content/browser/download/mock_download_file.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698