Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: chrome/browser/prerender/prerender_util.cc

Issue 2487463004: Remove unused using content::ResourceType (Closed)
Patch Set: Merge https://codereview.chromium.org/2480353003/ and https://codereview.chromium.org/2485873002/ Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/prerender/prerender_resource_throttle_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_macros.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
19 using content::ResourceType;
20
21 namespace prerender { 19 namespace prerender {
22 20
23 namespace { 21 namespace {
24 22
25 enum PrerenderSchemeCancelReason { 23 enum PrerenderSchemeCancelReason {
26 PRERENDER_SCHEME_CANCEL_REASON_EXTERNAL_PROTOCOL, 24 PRERENDER_SCHEME_CANCEL_REASON_EXTERNAL_PROTOCOL,
27 PRERENDER_SCHEME_CANCEL_REASON_DATA, 25 PRERENDER_SCHEME_CANCEL_REASON_DATA,
28 PRERENDER_SCHEME_CANCEL_REASON_BLOB, 26 PRERENDER_SCHEME_CANCEL_REASON_BLOB,
29 PRERENDER_SCHEME_CANCEL_REASON_FILE, 27 PRERENDER_SCHEME_CANCEL_REASON_FILE,
30 PRERENDER_SCHEME_CANCEL_REASON_FILESYSTEM, 28 PRERENDER_SCHEME_CANCEL_REASON_FILESYSTEM,
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 ReportPrerenderSchemeCancelReason( 110 ReportPrerenderSchemeCancelReason(
113 PRERENDER_SCHEME_CANCEL_REASON_CHROME_EXTENSION); 111 PRERENDER_SCHEME_CANCEL_REASON_CHROME_EXTENSION);
114 } else if (url.SchemeIs("about")) { 112 } else if (url.SchemeIs("about")) {
115 ReportPrerenderSchemeCancelReason(PRERENDER_SCHEME_CANCEL_REASON_ABOUT); 113 ReportPrerenderSchemeCancelReason(PRERENDER_SCHEME_CANCEL_REASON_ABOUT);
116 } else { 114 } else {
117 ReportPrerenderSchemeCancelReason(PRERENDER_SCHEME_CANCEL_REASON_UNKNOWN); 115 ReportPrerenderSchemeCancelReason(PRERENDER_SCHEME_CANCEL_REASON_UNKNOWN);
118 } 116 }
119 } 117 }
120 118
121 } // namespace prerender 119 } // namespace prerender
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_resource_throttle_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698