[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" |
[email protected] | 318076b | 2013-04-18 21:19:45 | [diff] [blame] | 11 | #include "url/url_parse.h" |
[email protected] | e7bba5f8 | 2013-04-10 20:10:52 | [diff] [blame] | 12 | |
13 | namespace url_util { | ||||
14 | |||||
15 | extern const char kFileScheme[]; | ||||
16 | extern const char kFileSystemScheme[]; | ||||
17 | extern const char kMailtoScheme[]; | ||||
18 | |||||
19 | // Given a string and a range inside the string, compares it to the given | ||||
20 | // lower-case |compare_to| buffer. | ||||
21 | bool CompareSchemeComponent(const char* spec, | ||||
22 | const url_parse::Component& component, | ||||
23 | const char* compare_to); | ||||
[email protected] | 3774f83 | 2013-06-11 21:21:57 | [diff] [blame] | 24 | bool CompareSchemeComponent(const base::char16* spec, |
[email protected] | e7bba5f8 | 2013-04-10 20:10:52 | [diff] [blame] | 25 | const url_parse::Component& component, |
26 | const char* compare_to); | ||||
27 | |||||
28 | } // namespace url_util | ||||
29 | |||||
[email protected] | 318076b | 2013-04-18 21:19:45 | [diff] [blame] | 30 | #endif // URL_URL_UTIL_INTERNAL_H_ |