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

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: Unedited changes made by the IWYU tool. 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"
10 #include "url/url_parse_internal.h"
11 11
12 namespace url { 12 namespace url {
Łukasz Anforowicz 2016/01/07 00:16:17 On line #16 below there is #ifdef WIN32 - it proba
13 13
14 namespace { 14 namespace {
15 15
16 #ifdef WIN32 16 #ifdef WIN32
17 17
18 // Given a pointer into the spec, this copies and canonicalizes the drive 18 // 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 19 // 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 20 // spec, it won't do anything. The index of the next character in the input
21 // spec is returned (after the colon when a drive spec is found, the begin 21 // spec is returned (after the colon when a drive spec is found, the begin
22 // offset if one is not). 22 // offset if one is not).
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 Parsed* new_parsed) { 180 Parsed* new_parsed) {
181 RawCanonOutput<1024> utf8; 181 RawCanonOutput<1024> utf8;
182 URLComponentSource<char> source(base); 182 URLComponentSource<char> source(base);
183 Parsed parsed(base_parsed); 183 Parsed parsed(base_parsed);
184 SetupUTF16OverrideComponents(base, replacements, &utf8, &source, &parsed); 184 SetupUTF16OverrideComponents(base, replacements, &utf8, &source, &parsed);
185 return DoCanonicalizeFileURL<char, unsigned char>( 185 return DoCanonicalizeFileURL<char, unsigned char>(
186 source, parsed, query_converter, output, new_parsed); 186 source, parsed, query_converter, output, new_parsed);
187 } 187 }
188 188
189 } // namespace url 189 } // namespace url
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698