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

Side by Side Diff: url/url_canon_stdurl.cc

Issue 1561693003: IWYU fixes for url/... Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self-review. Created 4 years, 11 months 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // Functions to canonicalize "standard" URLs, which are ones that have an 5 // Functions to canonicalize "standard" URLs, which are ones that have an
6 // authority section including a host name. 6 // authority section including a host name.
7 7
8 #include <string.h>
9
10 #include "base/strings/string16.h"
11 #include "url/third_party/mozilla/url_parse.h"
8 #include "url/url_canon.h" 12 #include "url/url_canon.h"
9 #include "url/url_canon_internal.h" 13 #include "url/url_canon_internal.h"
10 #include "url/url_constants.h" 14 #include "url/url_constants.h"
11 15
12 namespace url { 16 namespace url {
13 17
14 namespace { 18 namespace {
15 19
16 template<typename CHAR, typename UCHAR> 20 template<typename CHAR, typename UCHAR>
17 bool DoCanonicalizeStandardURL(const URLComponentSource<CHAR>& source, 21 bool DoCanonicalizeStandardURL(const URLComponentSource<CHAR>& source,
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 Parsed* new_parsed) { 182 Parsed* new_parsed) {
179 RawCanonOutput<1024> utf8; 183 RawCanonOutput<1024> utf8;
180 URLComponentSource<char> source(base); 184 URLComponentSource<char> source(base);
181 Parsed parsed(base_parsed); 185 Parsed parsed(base_parsed);
182 SetupUTF16OverrideComponents(base, replacements, &utf8, &source, &parsed); 186 SetupUTF16OverrideComponents(base, replacements, &utf8, &source, &parsed);
183 return DoCanonicalizeStandardURL<char, unsigned char>( 187 return DoCanonicalizeStandardURL<char, unsigned char>(
184 source, parsed, query_converter, output, new_parsed); 188 source, parsed, query_converter, output, new_parsed);
185 } 189 }
186 190
187 } // namespace url 191 } // namespace url
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698