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" |
10 #include "url/url_parse_internal.h" | 12 #include "url/url_parse_internal.h" |
11 | 13 |
12 namespace url { | 14 namespace url { |
13 | 15 |
14 namespace { | 16 namespace { |
15 | 17 |
16 #ifdef WIN32 | 18 #ifdef WIN32 |
(...skipping 163 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 |