| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/http/http_proxy_client_socket.h" | 5 #include "net/http/http_proxy_client_socket.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "base/stringprintf.h" | 10 #include "base/stringprintf.h" |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 } | 238 } |
| 239 | 239 |
| 240 bool HttpProxyClientSocket::SetReceiveBufferSize(int32 size) { | 240 bool HttpProxyClientSocket::SetReceiveBufferSize(int32 size) { |
| 241 return transport_->socket()->SetReceiveBufferSize(size); | 241 return transport_->socket()->SetReceiveBufferSize(size); |
| 242 } | 242 } |
| 243 | 243 |
| 244 bool HttpProxyClientSocket::SetSendBufferSize(int32 size) { | 244 bool HttpProxyClientSocket::SetSendBufferSize(int32 size) { |
| 245 return transport_->socket()->SetSendBufferSize(size); | 245 return transport_->socket()->SetSendBufferSize(size); |
| 246 } | 246 } |
| 247 | 247 |
| 248 int HttpProxyClientSocket::GetPeerAddress(AddressList* address) const { | 248 int HttpProxyClientSocket::GetPeerAddress(IPEndPoint* address) const { |
| 249 return transport_->socket()->GetPeerAddress(address); | 249 return transport_->socket()->GetPeerAddress(address); |
| 250 } | 250 } |
| 251 | 251 |
| 252 int HttpProxyClientSocket::GetLocalAddress(IPEndPoint* address) const { | 252 int HttpProxyClientSocket::GetLocalAddress(IPEndPoint* address) const { |
| 253 return transport_->socket()->GetLocalAddress(address); | 253 return transport_->socket()->GetLocalAddress(address); |
| 254 } | 254 } |
| 255 | 255 |
| 256 int HttpProxyClientSocket::PrepareForAuthRestart() { | 256 int HttpProxyClientSocket::PrepareForAuthRestart() { |
| 257 if (!response_.headers.get()) | 257 if (!response_.headers.get()) |
| 258 return ERR_CONNECTION_RESET; | 258 return ERR_CONNECTION_RESET; |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 | 512 |
| 513 int HttpProxyClientSocket::DoTCPRestartComplete(int result) { | 513 int HttpProxyClientSocket::DoTCPRestartComplete(int result) { |
| 514 if (result != OK) | 514 if (result != OK) |
| 515 return result; | 515 return result; |
| 516 | 516 |
| 517 next_state_ = STATE_GENERATE_AUTH_TOKEN; | 517 next_state_ = STATE_GENERATE_AUTH_TOKEN; |
| 518 return result; | 518 return result; |
| 519 } | 519 } |
| 520 | 520 |
| 521 } // namespace net | 521 } // namespace net |
| OLD | NEW |