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 "chrome/browser/prerender/prerender_util.h" | 5 #include "chrome/browser/prerender/prerender_util.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.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/public/browser/resource_request_info.h" | 11 #include "content/public/browser/resource_request_info.h" |
12 #include "content/public/common/resource_type.h" | 12 #include "content/public/common/resource_type.h" |
13 #include "net/http/http_response_headers.h" | 13 #include "net/http/http_response_headers.h" |
14 #include "net/url_request/url_request.h" | 14 #include "net/url_request/url_request.h" |
15 #include "url/third_party/mozilla/url_parse.h" | 15 #include "url/third_party/mozilla/url_parse.h" |
16 #include "url/url_canon.h" | 16 #include "url/url_canon.h" |
17 #include "url/url_util.h" | 17 #include "url/url_util.h" |
18 | 18 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 ReportPrerenderSchemeCancelReason( | 112 ReportPrerenderSchemeCancelReason( |
113 PRERENDER_SCHEME_CANCEL_REASON_CHROME_EXTENSION); | 113 PRERENDER_SCHEME_CANCEL_REASON_CHROME_EXTENSION); |
114 } else if (url.SchemeIs("about")) { | 114 } else if (url.SchemeIs("about")) { |
115 ReportPrerenderSchemeCancelReason(PRERENDER_SCHEME_CANCEL_REASON_ABOUT); | 115 ReportPrerenderSchemeCancelReason(PRERENDER_SCHEME_CANCEL_REASON_ABOUT); |
116 } else { | 116 } else { |
117 ReportPrerenderSchemeCancelReason(PRERENDER_SCHEME_CANCEL_REASON_UNKNOWN); | 117 ReportPrerenderSchemeCancelReason(PRERENDER_SCHEME_CANCEL_REASON_UNKNOWN); |
118 } | 118 } |
119 } | 119 } |
120 | 120 |
121 } // namespace prerender | 121 } // namespace prerender |
OLD | NEW |