| 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/profiler/scoped_tracker.h" | 9 #include "base/profiler/scoped_tracker.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 } | 236 } |
| 237 | 237 |
| 238 int HttpProxyClientSocket::SetReceiveBufferSize(int32_t size) { | 238 int HttpProxyClientSocket::SetReceiveBufferSize(int32_t size) { |
| 239 return transport_->socket()->SetReceiveBufferSize(size); | 239 return transport_->socket()->SetReceiveBufferSize(size); |
| 240 } | 240 } |
| 241 | 241 |
| 242 int HttpProxyClientSocket::SetSendBufferSize(int32_t size) { | 242 int HttpProxyClientSocket::SetSendBufferSize(int32_t size) { |
| 243 return transport_->socket()->SetSendBufferSize(size); | 243 return transport_->socket()->SetSendBufferSize(size); |
| 244 } | 244 } |
| 245 | 245 |
| 246 int HttpProxyClientSocket::SetDoNotFragment(bool do_not_fragment) { |
| 247 return transport_->socket()->SetDoNotFragment(do_not_fragment); |
| 248 } |
| 249 |
| 246 int HttpProxyClientSocket::GetPeerAddress(IPEndPoint* address) const { | 250 int HttpProxyClientSocket::GetPeerAddress(IPEndPoint* address) const { |
| 247 return transport_->socket()->GetPeerAddress(address); | 251 return transport_->socket()->GetPeerAddress(address); |
| 248 } | 252 } |
| 249 | 253 |
| 250 int HttpProxyClientSocket::GetLocalAddress(IPEndPoint* address) const { | 254 int HttpProxyClientSocket::GetLocalAddress(IPEndPoint* address) const { |
| 251 return transport_->socket()->GetLocalAddress(address); | 255 return transport_->socket()->GetLocalAddress(address); |
| 252 } | 256 } |
| 253 | 257 |
| 254 int HttpProxyClientSocket::PrepareForAuthRestart() { | 258 int HttpProxyClientSocket::PrepareForAuthRestart() { |
| 255 if (!response_.headers.get()) | 259 if (!response_.headers.get()) |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 next_state_ = STATE_DRAIN_BODY; | 529 next_state_ = STATE_DRAIN_BODY; |
| 526 return OK; | 530 return OK; |
| 527 } | 531 } |
| 528 | 532 |
| 529 return DidDrainBodyForAuthRestart(); | 533 return DidDrainBodyForAuthRestart(); |
| 530 } | 534 } |
| 531 | 535 |
| 532 //---------------------------------------------------------------- | 536 //---------------------------------------------------------------- |
| 533 | 537 |
| 534 } // namespace net | 538 } // namespace net |
| OLD | NEW |