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_IP_H_ | 5 #ifndef URL_URL_CANON_IP_H_ |
6 #define URL_URL_CANON_IP_H_ | 6 #define URL_URL_CANON_IP_H_ |
7 | 7 |
8 #include "base/string16.h" | 8 #include "base/strings/string16.h" |
9 #include "url/url_canon.h" | 9 #include "url/url_canon.h" |
10 #include "url/url_export.h" | 10 #include "url/url_export.h" |
11 #include "url/url_parse.h" | 11 #include "url/url_parse.h" |
12 | 12 |
13 namespace url_canon { | 13 namespace url_canon { |
14 | 14 |
15 // Writes the given IPv4 address to |output|. | 15 // Writes the given IPv4 address to |output|. |
16 URL_EXPORT void AppendIPv4Address(const unsigned char address[4], | 16 URL_EXPORT void AppendIPv4Address(const unsigned char address[4], |
17 CanonOutput* output); | 17 CanonOutput* output); |
18 | 18 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 URL_EXPORT bool IPv6AddressToNumber(const char* spec, | 75 URL_EXPORT bool IPv6AddressToNumber(const char* spec, |
76 const url_parse::Component& host, | 76 const url_parse::Component& host, |
77 unsigned char address[16]); | 77 unsigned char address[16]); |
78 URL_EXPORT bool IPv6AddressToNumber(const char16* spec, | 78 URL_EXPORT bool IPv6AddressToNumber(const char16* spec, |
79 const url_parse::Component& host, | 79 const url_parse::Component& host, |
80 unsigned char address[16]); | 80 unsigned char address[16]); |
81 | 81 |
82 } // namespace url_canon | 82 } // namespace url_canon |
83 | 83 |
84 #endif // URL_URL_CANON_IP_H_ | 84 #endif // URL_URL_CANON_IP_H_ |
OLD | NEW |