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_CANON_INTERNAL_H_ | 5 #ifndef URL_URL_CANON_INTERNAL_H_ |
6 #define URL_URL_CANON_INTERNAL_H_ | 6 #define URL_URL_CANON_INTERNAL_H_ |
7 | 7 |
8 // This file is intended to be included in another C++ file where the character | 8 // This file is intended to be included in another C++ file where the character |
9 // types are defined. This allows us to write mostly generic code, but not have | 9 // types are defined. This allows us to write mostly generic code, but not have |
10 // template bloat because everything is inlined when anybody calls any of our | 10 // template bloat because everything is inlined when anybody calls any of our |
11 // functions. | 11 // functions. |
12 | 12 |
13 #include <stddef.h> | 13 #include <stddef.h> |
14 #include <stdlib.h> | 14 #include <stdlib.h> |
15 | 15 |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
| 17 #include "base/strings/string16.h" |
17 #include "url/url_canon.h" | 18 #include "url/url_canon.h" |
| 19 #include "url/url_export.h" |
18 | 20 |
19 namespace url { | 21 namespace url { |
20 | 22 |
| 23 struct Component; |
| 24 struct Parsed; |
| 25 |
21 // Character type handling ----------------------------------------------------- | 26 // Character type handling ----------------------------------------------------- |
22 | 27 |
23 // Bits that identify different character types. These types identify different | 28 // Bits that identify different character types. These types identify different |
24 // bits that are set for each 8-bit character in the kSharedCharTypeTable. | 29 // bits that are set for each 8-bit character in the kSharedCharTypeTable. |
25 enum SharedCharTypes { | 30 enum SharedCharTypes { |
26 // Characters that do not require escaping in queries. Characters that do | 31 // Characters that do not require escaping in queries. Characters that do |
27 // not have this flag will be escaped; see url_canon_query.cc | 32 // not have this flag will be escaped; see url_canon_query.cc |
28 CHAR_QUERY = 1, | 33 CHAR_QUERY = 1, |
29 | 34 |
30 // Valid in the username/password field. | 35 // Valid in the username/password field. |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 inline unsigned long long _strtoui64(const char* nptr, | 430 inline unsigned long long _strtoui64(const char* nptr, |
426 char** endptr, int base) { | 431 char** endptr, int base) { |
427 return strtoull(nptr, endptr, base); | 432 return strtoull(nptr, endptr, base); |
428 } | 433 } |
429 | 434 |
430 #endif // WIN32 | 435 #endif // WIN32 |
431 | 436 |
432 } // namespace url | 437 } // namespace url |
433 | 438 |
434 #endif // URL_URL_CANON_INTERNAL_H_ | 439 #endif // URL_URL_CANON_INTERNAL_H_ |
OLD | NEW |