summaryrefslogtreecommitdiffstats
path: root/net/base/net_util.h
diff options
context:
space:
mode:
authorericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-03 21:30:46 +0000
committerericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-03 21:30:46 +0000
commiteba291345caec278ef7b8f2a8c73b8b6c60f7364 (patch)
tree368f0fd8b38f05fe1d1d447d390823bf4bc0b7b6 /net/base/net_util.h
parent2455e073eb458b2ab5a7edbb337781152868b8c0 (diff)
downloadchromium_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.h3
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.