| 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/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "url/third_party/mozilla/url_parse.h" |
| 9 #include "url/url_canon.h" | 10 #include "url/url_canon.h" |
| 10 #include "url/url_export.h" | 11 #include "url/url_export.h" |
| 11 #include "url/url_parse.h" | |
| 12 | 12 |
| 13 namespace url { | 13 namespace url { |
| 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 |
| 19 // Writes the given IPv6 address to |output|. | 19 // Writes the given IPv6 address to |output|. |
| 20 URL_EXPORT void AppendIPv6Address(const unsigned char address[16], | 20 URL_EXPORT void AppendIPv6Address(const unsigned char address[16], |
| 21 CanonOutput* output); | 21 CanonOutput* output); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 URL_EXPORT bool IPv6AddressToNumber(const char* spec, | 73 URL_EXPORT bool IPv6AddressToNumber(const char* spec, |
| 74 const Component& host, | 74 const Component& host, |
| 75 unsigned char address[16]); | 75 unsigned char address[16]); |
| 76 URL_EXPORT bool IPv6AddressToNumber(const base::char16* spec, | 76 URL_EXPORT bool IPv6AddressToNumber(const base::char16* spec, |
| 77 const Component& host, | 77 const Component& host, |
| 78 unsigned char address[16]); | 78 unsigned char address[16]); |
| 79 | 79 |
| 80 } // namespace url | 80 } // namespace url |
| 81 | 81 |
| 82 #endif // URL_URL_CANON_IP_H_ | 82 #endif // URL_URL_CANON_IP_H_ |
| OLD | NEW |