OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/string_util.h" |
9 #include "content/browser/download/download_resource_handler.h" | 9 #include "content/browser/download/download_resource_handler.h" |
10 #include "content/browser/download/interrupt_reasons.h" | 10 #include "content/browser/download/interrupt_reasons.h" |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 } | 310 } |
311 | 311 |
312 void RecordOpensOutstanding(int size) { | 312 void RecordOpensOutstanding(int size) { |
313 UMA_HISTOGRAM_CUSTOM_COUNTS("Download.OpensOutstanding", | 313 UMA_HISTOGRAM_CUSTOM_COUNTS("Download.OpensOutstanding", |
314 size, | 314 size, |
315 0/*min*/, | 315 0/*min*/, |
316 (1 << 10)/*max*/, | 316 (1 << 10)/*max*/, |
317 64/*num_buckets*/); | 317 64/*num_buckets*/); |
318 } | 318 } |
319 | 319 |
| 320 void RecordOnChanged(int percent) { |
| 321 UMA_HISTOGRAM_PERCENTAGE("Download.OnChanged", percent); |
| 322 } |
| 323 |
320 } // namespace download_stats | 324 } // namespace download_stats |
OLD | NEW |