diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-30 00:39:57 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-30 00:39:57 +0000 |
commit | 2dcec1fbb4343693721ec1b81452a93883efbc2e (patch) | |
tree | f32021cc84b1f14e46e90a978c201b536cdde61e /url/url_canon_ip.h | |
parent | 1ada567356f93581d6615f5e4d06f8c5e32e1cef (diff) | |
download | chromium_src-2dcec1fbb4343693721ec1b81452a93883efbc2e.zip chromium_src-2dcec1fbb4343693721ec1b81452a93883efbc2e.tar.gz chromium_src-2dcec1fbb4343693721ec1b81452a93883efbc2e.tar.bz2 |
Make the copy of GURL in src/url buildable as a component build. (try 2)
BUG=229660
TBR=brettw
Review URL: https://chromiumcodereview.appspot.com/15805003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203025 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'url/url_canon_ip.h')
-rw-r--r-- | url/url_canon_ip.h | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/url/url_canon_ip.h b/url/url_canon_ip.h index bf4b4ad..fd288ad 100644 --- a/url/url_canon_ip.h +++ b/url/url_canon_ip.h @@ -7,17 +7,18 @@ #include "base/string16.h" #include "url/url_canon.h" +#include "url/url_export.h" #include "url/url_parse.h" namespace url_canon { // Writes the given IPv4 address to |output|. -void AppendIPv4Address(const unsigned char address[4], - CanonOutput* output); +URL_EXPORT void AppendIPv4Address(const unsigned char address[4], + CanonOutput* output); // Writes the given IPv6 address to |output|. -void AppendIPv6Address(const unsigned char address[16], - CanonOutput* output); +URL_EXPORT void AppendIPv6Address(const unsigned char address[16], + CanonOutput* output); // Searches the host name for the portions of the IPv4 address. On success, // each component will be placed into |components| and it will return true. @@ -37,12 +38,12 @@ void AppendIPv6Address(const unsigned char address[16], // Mozilla), so this code path never gets hit. Our host canonicalization will // notice these spaces and escape them, which will make IP address finding // fail. This seems like better behavior than stripping after a space. -bool FindIPv4Components(const char* spec, - const url_parse::Component& host, - url_parse::Component components[4]); -bool FindIPv4Components(const char16* spec, - const url_parse::Component& host, - url_parse::Component components[4]); +URL_EXPORT bool FindIPv4Components(const char* spec, + const url_parse::Component& host, + url_parse::Component components[4]); +URL_EXPORT bool FindIPv4Components(const char16* spec, + const url_parse::Component& host, + url_parse::Component components[4]); // Converts an IPv4 address to a 32-bit number (network byte order). // @@ -55,12 +56,12 @@ bool FindIPv4Components(const char16* spec, // // On success, |num_ipv4_components| will be populated with the number of // components in the IPv4 address. -CanonHostInfo::Family IPv4AddressToNumber( +URL_EXPORT CanonHostInfo::Family IPv4AddressToNumber( const char* spec, const url_parse::Component& host, unsigned char address[4], int* num_ipv4_components); -CanonHostInfo::Family IPv4AddressToNumber( +URL_EXPORT CanonHostInfo::Family IPv4AddressToNumber( const char16* spec, const url_parse::Component& host, unsigned char address[4], @@ -71,12 +72,12 @@ CanonHostInfo::Family IPv4AddressToNumber( // // NOTE that |host| is expected to be surrounded by square brackets. // i.e. "[::1]" rather than "::1". -bool IPv6AddressToNumber(const char* spec, - const url_parse::Component& host, - unsigned char address[16]); -bool IPv6AddressToNumber(const char16* spec, - const url_parse::Component& host, - unsigned char address[16]); +URL_EXPORT bool IPv6AddressToNumber(const char* spec, + const url_parse::Component& host, + unsigned char address[16]); +URL_EXPORT bool IPv6AddressToNumber(const char16* spec, + const url_parse::Component& host, + unsigned char address[16]); } // namespace url_canon |