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 // Canonicalizers for random bits that aren't big enough for their own files. | 5 // Canonicalizers for random bits that aren't big enough for their own files. |
6 | 6 |
7 #include <string.h> | 7 #include "base/strings/string16.h" |
8 | 8 #include "url/third_party/mozilla/url_parse.h" |
9 #include "url/url_canon.h" | 9 #include "url/url_canon.h" |
10 #include "url/url_canon_internal.h" | 10 #include "url/url_canon_internal.h" |
11 | 11 |
12 namespace url { | 12 namespace url { |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
16 // Returns true if the given character should be removed from the middle of a | 16 // Returns true if the given character should be removed from the middle of a |
17 // URL. | 17 // URL. |
18 inline bool IsRemovableURLWhitespace(int ch) { | 18 inline bool IsRemovableURLWhitespace(int ch) { |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 } | 358 } |
359 | 359 |
360 void CanonicalizeRef(const base::char16* spec, | 360 void CanonicalizeRef(const base::char16* spec, |
361 const Component& ref, | 361 const Component& ref, |
362 CanonOutput* output, | 362 CanonOutput* output, |
363 Component* out_ref) { | 363 Component* out_ref) { |
364 DoCanonicalizeRef<base::char16, base::char16>(spec, ref, output, out_ref); | 364 DoCanonicalizeRef<base::char16, base::char16>(spec, ref, output, out_ref); |
365 } | 365 } |
366 | 366 |
367 } // namespace url | 367 } // namespace url |
OLD | NEW |