diff options
author | ericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-03 21:30:46 +0000 |
---|---|---|
committer | ericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-03 21:30:46 +0000 |
commit | eba291345caec278ef7b8f2a8c73b8b6c60f7364 (patch) | |
tree | 368f0fd8b38f05fe1d1d447d390823bf4bc0b7b6 /net/base/net_util.h | |
parent | 2455e073eb458b2ab5a7edbb337781152868b8c0 (diff) | |
download | chromium_src-eba291345caec278ef7b8f2a8c73b8b6c60f7364.zip chromium_src-eba291345caec278ef7b8f2a8c73b8b6c60f7364.tar.gz chromium_src-eba291345caec278ef7b8f2a8c73b8b6c60f7364.tar.bz2 |
Implement the PAC js-binding for "myIpAddress()".
BUG=2764
Review URL: http://codereview.chromium.org/38001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10824 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/net_util.h')
-rw-r--r-- | net/base/net_util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/base/net_util.h b/net/base/net_util.h index 6f3c1ff..014a83d 100644 --- a/net/base/net_util.h +++ b/net/base/net_util.h @@ -58,6 +58,9 @@ bool GetHostAndPort(const std::string& host_and_port, // Returns empty string on failure. std::string NetAddressToString(const struct addrinfo* net_address); +// Returns the hostname of the current system. Returns empty string on failure. +std::string GetMyHostName(); + // 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. |