Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 |
| OLD | NEW |