diff options
author | tfarina <tfarina@chromium.org> | 2015-12-21 15:45:57 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-21 23:47:12 +0000 |
commit | 3a9e39e049b35d2457d0f184eb3f13e0d987f364 (patch) | |
tree | fd4540ce709dec7ea7a2f21dd078edb2129bae3a | |
parent | a5998c38aa8214cbfa7c262475c6587554f5df57 (diff) | |
download | chromium_src-3a9e39e049b35d2457d0f184eb3f13e0d987f364.zip chromium_src-3a9e39e049b35d2457d0f184eb3f13e0d987f364.tar.gz chromium_src-3a9e39e049b35d2457d0f184eb3f13e0d987f364.tar.bz2 |
net: mark some functions in net_util.h as public
They are not really private to net, since they are used "extensively"
outside of it, so keeping using NET_EXPORT_PRIVATE does not make much
sense and just gives the wrong impression for the occasional reader when
looking at this header file.
BUG=552248
R=eroman@chromium.org
Review URL: https://codereview.chromium.org/1541933003
Cr-Commit-Position: refs/heads/master@{#366492}
-rw-r--r-- | net/base/net_util.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/base/net_util.h b/net/base/net_util.h index 08510a8..9c61fcf 100644 --- a/net/base/net_util.h +++ b/net/base/net_util.h @@ -69,7 +69,7 @@ NET_EXPORT std::string GetHostAndPort(const GURL& url); // Returns a host[:port] string for the given URL, where the port is omitted // if it is the default for the URL's scheme. -NET_EXPORT_PRIVATE std::string GetHostAndOptionalPort(const GURL& url); +NET_EXPORT std::string GetHostAndOptionalPort(const GURL& url); // Returns true if |hostname| contains a non-registerable or non-assignable // domain name (eg: a gTLD that has not been assigned by IANA) or an IP address @@ -160,7 +160,7 @@ NET_EXPORT std::string GetDirectoryListingEntry(const base::string16& name, // Strip the portions of |url| that aren't core to the network request. // - user name / password // - reference section -NET_EXPORT_PRIVATE GURL SimplifyUrlForRequest(const GURL& url); +NET_EXPORT GURL SimplifyUrlForRequest(const GURL& url); // Retuns the port field of the |sockaddr|. const uint16_t* GetPortFieldFromSockaddr(const struct sockaddr* address, @@ -184,7 +184,7 @@ NET_EXPORT_PRIVATE bool ResolveLocalHostname(base::StringPiece host, // Note that this function does not check for IP addresses other than // the above, although other IP addresses may point to the local // machine. -NET_EXPORT_PRIVATE bool IsLocalhost(base::StringPiece host); +NET_EXPORT bool IsLocalhost(base::StringPiece host); // Returns true if the url's host is a Google server. This should only be used // for histograms and shouldn't be used to affect behavior. |