summaryrefslogtreecommitdiffstats
path: root/net/http
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-19 23:49:35 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-19 23:49:35 +0000
commite7f74dada8e347bde1e7e88e88d6fd3c9882375a (patch)
treed563b0762ffe6062005b24e277dd1bb4a8019aef /net/http
parent15ff0118ad82bfc4b89ad612f130fed0df512612 (diff)
downloadchromium_src-e7f74dada8e347bde1e7e88e88d6fd3c9882375a.zip
chromium_src-e7f74dada8e347bde1e7e88e88d6fd3c9882375a.tar.gz
chromium_src-e7f74dada8e347bde1e7e88e88d6fd3c9882375a.tar.bz2
Added GetLocalAddress() in net::ClientSocket.
BUG=None TEST=Unittests Review URL: http://codereview.chromium.org/6840033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82190 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http')
-rw-r--r--net/http/http_proxy_client_socket.cc4
-rw-r--r--net/http/http_proxy_client_socket.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/net/http/http_proxy_client_socket.cc b/net/http/http_proxy_client_socket.cc
index 23efcb9..0a41c1f 100644
--- a/net/http/http_proxy_client_socket.cc
+++ b/net/http/http_proxy_client_socket.cc
@@ -205,6 +205,10 @@ int HttpProxyClientSocket::GetPeerAddress(AddressList* address) const {
return transport_->socket()->GetPeerAddress(address);
}
+int HttpProxyClientSocket::GetLocalAddress(IPEndPoint* address) const {
+ return transport_->socket()->GetLocalAddress(address);
+}
+
int HttpProxyClientSocket::PrepareForAuthRestart() {
if (!response_.headers.get())
return ERR_CONNECTION_RESET;
diff --git a/net/http/http_proxy_client_socket.h b/net/http/http_proxy_client_socket.h
index f44a7eb..7410fac 100644
--- a/net/http/http_proxy_client_socket.h
+++ b/net/http/http_proxy_client_socket.h
@@ -85,6 +85,7 @@ class HttpProxyClientSocket : public ProxyClientSocket {
virtual bool SetReceiveBufferSize(int32 size);
virtual bool SetSendBufferSize(int32 size);
virtual int GetPeerAddress(AddressList* address) const;
+ virtual int GetLocalAddress(IPEndPoint* address) const;
private:
enum State {