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 "webkit/browser/appcache/appcache_histograms.h" | 5 #include "content/browser/appcache/appcache_histograms.h" |
6 | 6 |
7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
8 | 8 |
9 namespace appcache { | 9 namespace content { |
10 | 10 |
11 static std::string OriginToCustomHistogramSuffix(const GURL& origin_url) { | 11 static std::string OriginToCustomHistogramSuffix(const GURL& origin_url) { |
12 if (origin_url.host() == "docs.google.com") | 12 if (origin_url.host() == "docs.google.com") |
13 return ".Docs"; | 13 return ".Docs"; |
14 return std::string(); | 14 return std::string(); |
15 } | 15 } |
16 | 16 |
17 void AppCacheHistograms::CountInitResult(InitResultType init_result) { | 17 void AppCacheHistograms::CountInitResult(InitResultType init_result) { |
18 UMA_HISTOGRAM_ENUMERATION( | 18 UMA_HISTOGRAM_ENUMERATION( |
19 "appcache.InitResult", | 19 "appcache.InitResult", |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 UMA_HISTOGRAM_BOOLEAN("appcache.MissingManifestEntry", true); | 144 UMA_HISTOGRAM_BOOLEAN("appcache.MissingManifestEntry", true); |
145 } | 145 } |
146 | 146 |
147 void AppCacheHistograms::AddMissingManifestDetectedAtCallsite( | 147 void AppCacheHistograms::AddMissingManifestDetectedAtCallsite( |
148 MissingManifestCallsiteType callsite) { | 148 MissingManifestCallsiteType callsite) { |
149 UMA_HISTOGRAM_ENUMERATION( | 149 UMA_HISTOGRAM_ENUMERATION( |
150 "appcache.MissingManifestDetectedAtCallsite", | 150 "appcache.MissingManifestDetectedAtCallsite", |
151 callsite, NUM_MISSING_MANIFEST_CALLSITE_TYPES); | 151 callsite, NUM_MISSING_MANIFEST_CALLSITE_TYPES); |
152 } | 152 } |
153 | 153 |
154 } // namespace appcache | 154 } // namespace content |
OLD | NEW |