From eba291345caec278ef7b8f2a8c73b8b6c60f7364 Mon Sep 17 00:00:00 2001 From: "ericroman@google.com" Date: Tue, 3 Mar 2009 21:30:46 +0000 Subject: 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 --- net/base/net_util.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'net/base/net_util.h') 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. -- cgit v1.1