diff options
author | ericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-02 21:45:18 +0000 |
---|---|---|
committer | ericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-02 21:45:18 +0000 |
commit | 50d7d7283db42b531a9df9c6f5a34b8526d4d5b0 (patch) | |
tree | 6d29abd0b0a82a658a9a526e37279a26a636142e /net/base/net_util.h | |
parent | e97cdd5e81a3f8c3bd735ab1e7d264c36c2c3870 (diff) | |
download | chromium_src-50d7d7283db42b531a9df9c6f5a34b8526d4d5b0.zip chromium_src-50d7d7283db42b531a9df9c6f5a34b8526d4d5b0.tar.gz chromium_src-50d7d7283db42b531a9df9c6f5a34b8526d4d5b0.tar.bz2 |
Add js bindings layer for ProxyResolverV8 {"alert()", "dnsResolve()", "myIpAddress" <-- [partial]}.
Also adds a utility function to net_util for turning a addrinfo into an IP address string.
BUG=2764
Review URL: http://codereview.chromium.org/31009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10730 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/net_util.h')
-rw-r--r-- | net/base/net_util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/base/net_util.h b/net/base/net_util.h index 1fda9bd..6f3c1ff 100644 --- a/net/base/net_util.h +++ b/net/base/net_util.h @@ -17,6 +17,7 @@ #include "googleurl/src/url_canon.h" #include "googleurl/src/url_parse.h" +struct addrinfo; class FilePath; class GURL; @@ -53,6 +54,10 @@ bool GetHostAndPort(const std::string& host_and_port, std::string* host, int* port); +// Returns the string representation of an address, like "192.168.0.1". +// Returns empty string on failure. +std::string NetAddressToString(const struct addrinfo* net_address); + // Return the value of the HTTP response header with name 'name'. 'headers' // should be in the format that URLRequest::GetResponseHeaders() returns. // Returns the empty string if the header is not found. |