[email protected] | 51bcc5d | 2013-04-24 01:41:37 | [diff] [blame] | 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 | ||||
3 | // found in the LICENSE file. | ||||
[email protected] | e7bba5f8 | 2013-04-10 20:10:52 | [diff] [blame] | 4 | |
[email protected] | 318076b | 2013-04-18 21:19:45 | [diff] [blame] | 5 | #ifndef URL_URL_UTIL_INTERNAL_H_ |
6 | #define URL_URL_UTIL_INTERNAL_H_ | ||||
[email protected] | e7bba5f8 | 2013-04-10 20:10:52 | [diff] [blame] | 7 | |
8 | #include <string> | ||||
9 | |||||
[email protected] | 516f018 | 2013-06-11 22:51:56 | [diff] [blame] | 10 | #include "base/strings/string16.h" |
tfarina | 018de6e | 2015-05-26 17:41:20 | [diff] [blame] | 11 | #include "url/third_party/mozilla/url_parse.h" |
[email protected] | e7bba5f8 | 2013-04-10 20:10:52 | [diff] [blame] | 12 | |
[email protected] | 0318f92 | 2014-04-22 00:09:23 | [diff] [blame] | 13 | namespace url { |
[email protected] | e7bba5f8 | 2013-04-10 20:10:52 | [diff] [blame] | 14 | |
[email protected] | e7bba5f8 | 2013-04-10 20:10:52 | [diff] [blame] | 15 | // Given a string and a range inside the string, compares it to the given |
16 | // lower-case |compare_to| buffer. | ||||
17 | bool CompareSchemeComponent(const char* spec, | ||||
[email protected] | 0318f92 | 2014-04-22 00:09:23 | [diff] [blame] | 18 | const Component& component, |
[email protected] | e7bba5f8 | 2013-04-10 20:10:52 | [diff] [blame] | 19 | const char* compare_to); |
[email protected] | 3774f83 | 2013-06-11 21:21:57 | [diff] [blame] | 20 | bool CompareSchemeComponent(const base::char16* spec, |
[email protected] | 0318f92 | 2014-04-22 00:09:23 | [diff] [blame] | 21 | const Component& component, |
[email protected] | e7bba5f8 | 2013-04-10 20:10:52 | [diff] [blame] | 22 | const char* compare_to); |
23 | |||||
[email protected] | 0318f92 | 2014-04-22 00:09:23 | [diff] [blame] | 24 | } // namespace url |
[email protected] | e7bba5f8 | 2013-04-10 20:10:52 | [diff] [blame] | 25 | |
[email protected] | 318076b | 2013-04-18 21:19:45 | [diff] [blame] | 26 | #endif // URL_URL_UTIL_INTERNAL_H_ |