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

Side by Side Diff: url/url_canon_fileurl.cc

Issue 1561693003: IWYU fixes for url/... Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added IWYU-pragma-keep in a few places. 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 for canonicalizing "file:" URLs. 5 // Functions for canonicalizing "file:" URLs.
6 6
7 #include "base/strings/string16.h"
8 #include "url/third_party/mozilla/url_parse.h"
7 #include "url/url_canon.h" 9 #include "url/url_canon.h"
8 #include "url/url_canon_internal.h" 10 #include "url/url_canon_internal.h"
9 #include "url/url_file.h" 11 #include "url/url_file.h" // IWYU pragma: keep
dcheng 2016/01/07 00:25:41 Having to do this seems like a net negative. Have
Łukasz Anforowicz 2016/01/07 00:44:53 Yes, but I haven't looked at the results.
10 #include "url/url_parse_internal.h" 12 #include "url/url_parse_internal.h" // IWYU pragma: keep
11 13
12 namespace url { 14 namespace url {
13 15
14 namespace { 16 namespace {
15 17
16 #ifdef WIN32 18 #ifdef WIN32
17 19
18 // Given a pointer into the spec, this copies and canonicalizes the drive 20 // Given a pointer into the spec, this copies and canonicalizes the drive
19 // letter and colon to the output, if one is found. If there is not a drive 21 // letter and colon to the output, if one is found. If there is not a drive
20 // spec, it won't do anything. The index of the next character in the input 22 // spec, it won't do anything. The index of the next character in the input
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 Parsed* new_parsed) { 182 Parsed* new_parsed) {
181 RawCanonOutput<1024> utf8; 183 RawCanonOutput<1024> utf8;
182 URLComponentSource<char> source(base); 184 URLComponentSource<char> source(base);
183 Parsed parsed(base_parsed); 185 Parsed parsed(base_parsed);
184 SetupUTF16OverrideComponents(base, replacements, &utf8, &source, &parsed); 186 SetupUTF16OverrideComponents(base, replacements, &utf8, &source, &parsed);
185 return DoCanonicalizeFileURL<char, unsigned char>( 187 return DoCanonicalizeFileURL<char, unsigned char>(
186 source, parsed, query_converter, output, new_parsed); 188 source, parsed, query_converter, output, new_parsed);
187 } 189 }
188 190
189 } // namespace url 191 } // namespace url
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698