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 #include "content/browser/download/download_stats.h" | 5 #include "content/browser/download/download_stats.h" |
6 | 6 |
7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
8 #include "base/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "content/browser/download/download_resource_handler.h" | 9 #include "content/browser/download/download_resource_handler.h" |
10 #include "content/public/browser/download_interrupt_reasons.h" | 10 #include "content/public/browser/download_interrupt_reasons.h" |
11 #include "net/http/http_content_disposition.h" | 11 #include "net/http/http_content_disposition.h" |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 // All possible error codes from the network module. Note that the error codes | 17 // All possible error codes from the network module. Note that the error codes |
18 // are all positive (since histograms expect positive sample values). | 18 // are all positive (since histograms expect positive sample values). |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 disk_write_time_ms * 100 / elapsed_time_ms); | 450 disk_write_time_ms * 100 / elapsed_time_ms); |
451 } | 451 } |
452 | 452 |
453 void RecordSavePackageEvent(SavePackageEvent event) { | 453 void RecordSavePackageEvent(SavePackageEvent event) { |
454 UMA_HISTOGRAM_ENUMERATION("Download.SavePackage", | 454 UMA_HISTOGRAM_ENUMERATION("Download.SavePackage", |
455 event, | 455 event, |
456 SAVE_PACKAGE_LAST_ENTRY); | 456 SAVE_PACKAGE_LAST_ENTRY); |
457 } | 457 } |
458 | 458 |
459 } // namespace content | 459 } // namespace content |
OLD | NEW |