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/macros.h" | 7 #include "base/macros.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram_macros.h" |
9 #include "base/metrics/sparse_histogram.h" | 9 #include "base/metrics/sparse_histogram.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
11 #include "content/browser/download/download_resource_handler.h" | 11 #include "content/browser/download/download_resource_handler.h" |
12 #include "content/public/browser/download_interrupt_reasons.h" | 12 #include "content/public/browser/download_interrupt_reasons.h" |
13 #include "net/http/http_content_disposition.h" | 13 #include "net/http/http_content_disposition.h" |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
769 int state) { | 769 int state) { |
770 if (is_partial) | 770 if (is_partial) |
771 UMA_HISTOGRAM_ENUMERATION("Download.OriginStateOnPartialResumption", state, | 771 UMA_HISTOGRAM_ENUMERATION("Download.OriginStateOnPartialResumption", state, |
772 ORIGIN_STATE_ON_RESUMPTION_MAX); | 772 ORIGIN_STATE_ON_RESUMPTION_MAX); |
773 else | 773 else |
774 UMA_HISTOGRAM_ENUMERATION("Download.OriginStateOnFullResumption", state, | 774 UMA_HISTOGRAM_ENUMERATION("Download.OriginStateOnFullResumption", state, |
775 ORIGIN_STATE_ON_RESUMPTION_MAX); | 775 ORIGIN_STATE_ON_RESUMPTION_MAX); |
776 } | 776 } |
777 | 777 |
778 } // namespace content | 778 } // namespace content |
OLD | NEW |