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 #include "base/strings/string16.h" |
| 6 #include "url/third_party/mozilla/url_parse.h" |
5 #include "url/url_canon.h" | 7 #include "url/url_canon.h" |
6 #include "url/url_canon_internal.h" | 8 #include "url/url_canon_internal.h" |
7 | 9 |
8 // Query canonicalization in IE | 10 // Query canonicalization in IE |
9 // ---------------------------- | 11 // ---------------------------- |
10 // IE is very permissive for query parameters specified in links on the page | 12 // IE is very permissive for query parameters specified in links on the page |
11 // (in contrast to links that it constructs itself based on form data). It does | 13 // (in contrast to links that it constructs itself based on form data). It does |
12 // not unescape any character. It does not reject any escape sequence (be they | 14 // not unescape any character. It does not reject any escape sequence (be they |
13 // invalid like "%2y" or freaky like %00). | 15 // invalid like "%2y" or freaky like %00). |
14 // | 16 // |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 | 157 |
156 void ConvertUTF16ToQueryEncoding(const base::char16* input, | 158 void ConvertUTF16ToQueryEncoding(const base::char16* input, |
157 const Component& query, | 159 const Component& query, |
158 CharsetConverter* converter, | 160 CharsetConverter* converter, |
159 CanonOutput* output) { | 161 CanonOutput* output) { |
160 DoConvertToQueryEncoding<base::char16, base::char16>(input, query, | 162 DoConvertToQueryEncoding<base::char16, base::char16>(input, query, |
161 converter, output); | 163 converter, output); |
162 } | 164 } |
163 | 165 |
164 } // namespace url | 166 } // namespace url |
OLD | NEW |