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

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

Issue 342233002: Revert 278483 "[Downloads] Retry renames after transient failures." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 6 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 | 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 // how often, for each download, something other than the network 193 // how often, for each download, something other than the network
194 // was the bottleneck). 194 // was the bottleneck).
195 void RecordNetworkBlockage(base::TimeDelta resource_handler_lifetime, 195 void RecordNetworkBlockage(base::TimeDelta resource_handler_lifetime,
196 base::TimeDelta resource_handler_blocked_time); 196 base::TimeDelta resource_handler_blocked_time);
197 197
198 // Record overall bandwidth stats at the file end. 198 // Record overall bandwidth stats at the file end.
199 void RecordFileBandwidth(size_t length, 199 void RecordFileBandwidth(size_t length,
200 base::TimeDelta disk_write_time, 200 base::TimeDelta disk_write_time,
201 base::TimeDelta elapsed_time); 201 base::TimeDelta elapsed_time);
202 202
203 // Record the result of a download file rename.
204 void RecordDownloadFileRenameResultAfterRetry(
205 base::TimeDelta time_since_first_failure,
206 DownloadInterruptReason interrupt_reason);
207
208 enum SavePackageEvent { 203 enum SavePackageEvent {
209 // The user has started to save a page as a package. 204 // The user has started to save a page as a package.
210 SAVE_PACKAGE_STARTED, 205 SAVE_PACKAGE_STARTED,
211 206
212 // The save package operation was cancelled. 207 // The save package operation was cancelled.
213 SAVE_PACKAGE_CANCELLED, 208 SAVE_PACKAGE_CANCELLED,
214 209
215 // The save package operation finished without being cancelled. 210 // The save package operation finished without being cancelled.
216 SAVE_PACKAGE_FINISHED, 211 SAVE_PACKAGE_FINISHED,
217 212
(...skipping 17 matching lines...) Expand all
235 230
236 // Record the state of the origin information across a download resumption 231 // Record the state of the origin information across a download resumption
237 // request. |state| is a combination of values from OriginStateOnResumption 232 // request. |state| is a combination of values from OriginStateOnResumption
238 // enum. 233 // enum.
239 void RecordOriginStateOnResumption(bool is_partial, 234 void RecordOriginStateOnResumption(bool is_partial,
240 int state); 235 int state);
241 236
242 } // namespace content 237 } // namespace content
243 238
244 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATS_H_ 239 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698