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

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

Issue 12886034: Remove experimental code to pick the "warmest" socket (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync, fix conflict Created 7 years, 8 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_response_body_drainer_unittest.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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 } 177 }
178 178
179 bool HttpProxyClientSocket::UsingTCPFastOpen() const { 179 bool HttpProxyClientSocket::UsingTCPFastOpen() const {
180 if (transport_.get() && transport_->socket()) { 180 if (transport_.get() && transport_->socket()) {
181 return transport_->socket()->UsingTCPFastOpen(); 181 return transport_->socket()->UsingTCPFastOpen();
182 } 182 }
183 NOTREACHED(); 183 NOTREACHED();
184 return false; 184 return false;
185 } 185 }
186 186
187 int64 HttpProxyClientSocket::NumBytesRead() const {
188 if (transport_.get() && transport_->socket()) {
189 return transport_->socket()->NumBytesRead();
190 }
191 NOTREACHED();
192 return -1;
193 }
194
195 base::TimeDelta HttpProxyClientSocket::GetConnectTimeMicros() const {
196 if (transport_.get() && transport_->socket()) {
197 return transport_->socket()->GetConnectTimeMicros();
198 }
199 NOTREACHED();
200 return base::TimeDelta::FromMicroseconds(-1);
201 }
202
203 bool HttpProxyClientSocket::WasNpnNegotiated() const { 187 bool HttpProxyClientSocket::WasNpnNegotiated() const {
204 if (transport_.get() && transport_->socket()) { 188 if (transport_.get() && transport_->socket()) {
205 return transport_->socket()->WasNpnNegotiated(); 189 return transport_->socket()->WasNpnNegotiated();
206 } 190 }
207 NOTREACHED(); 191 NOTREACHED();
208 return false; 192 return false;
209 } 193 }
210 194
211 NextProto HttpProxyClientSocket::GetNegotiatedProtocol() const { 195 NextProto HttpProxyClientSocket::GetNegotiatedProtocol() const {
212 if (transport_.get() && transport_->socket()) { 196 if (transport_.get() && transport_->socket()) {
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 521
538 int HttpProxyClientSocket::DoTCPRestartComplete(int result) { 522 int HttpProxyClientSocket::DoTCPRestartComplete(int result) {
539 if (result != OK) 523 if (result != OK)
540 return result; 524 return result;
541 525
542 next_state_ = STATE_GENERATE_AUTH_TOKEN; 526 next_state_ = STATE_GENERATE_AUTH_TOKEN;
543 return result; 527 return result;
544 } 528 }
545 529
546 } // namespace net 530 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_proxy_client_socket.h ('k') | net/http/http_response_body_drainer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698