Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(214)

Side by Side Diff: net/http/http_proxy_client_socket.cc

Issue 10491007: fixed issue 128383 - replace GetPeerAddress(AddressList* address) with GetPeerAddress(IPEndPoint* a… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix according to review Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/http/http_proxy_client_socket.h ('k') | net/http/http_stream_parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/http/http_proxy_client_socket.h ('k') | net/http/http_stream_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698