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 #ifndef URL_URL_UTIL_INTERNAL_H_ | 5 #ifndef URL_URL_UTIL_INTERNAL_H_ |
6 #define URL_URL_UTIL_INTERNAL_H_ | 6 #define URL_URL_UTIL_INTERNAL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
11 #include "url/url_parse.h" | 11 #include "url/third_party/mozilla/url_parse.h" |
12 | 12 |
13 namespace url { | 13 namespace url { |
14 | 14 |
15 // Given a string and a range inside the string, compares it to the given | 15 // Given a string and a range inside the string, compares it to the given |
16 // lower-case |compare_to| buffer. | 16 // lower-case |compare_to| buffer. |
17 bool CompareSchemeComponent(const char* spec, | 17 bool CompareSchemeComponent(const char* spec, |
18 const Component& component, | 18 const Component& component, |
19 const char* compare_to); | 19 const char* compare_to); |
20 bool CompareSchemeComponent(const base::char16* spec, | 20 bool CompareSchemeComponent(const base::char16* spec, |
21 const Component& component, | 21 const Component& component, |
22 const char* compare_to); | 22 const char* compare_to); |
23 | 23 |
24 } // namespace url | 24 } // namespace url |
25 | 25 |
26 #endif // URL_URL_UTIL_INTERNAL_H_ | 26 #endif // URL_URL_UTIL_INTERNAL_H_ |
OLD | NEW |