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

Side by Side Diff: jingle/glue/proxy_resolving_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 | « jingle/glue/proxy_resolving_client_socket.h ('k') | jingle/glue/pseudotcp_adapter.h » ('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 "jingle/glue/proxy_resolving_client_socket.h" 5 #include "jingle/glue/proxy_resolving_client_socket.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 return false; 366 return false;
367 } 367 }
368 368
369 bool ProxyResolvingClientSocket::UsingTCPFastOpen() const { 369 bool ProxyResolvingClientSocket::UsingTCPFastOpen() const {
370 if (transport_.get() && transport_->socket()) 370 if (transport_.get() && transport_->socket())
371 return transport_->socket()->UsingTCPFastOpen(); 371 return transport_->socket()->UsingTCPFastOpen();
372 NOTREACHED(); 372 NOTREACHED();
373 return false; 373 return false;
374 } 374 }
375 375
376 int64 ProxyResolvingClientSocket::NumBytesRead() const {
377 if (transport_.get() && transport_->socket())
378 return transport_->socket()->NumBytesRead();
379 NOTREACHED();
380 return -1;
381 }
382
383 base::TimeDelta ProxyResolvingClientSocket::GetConnectTimeMicros() const {
384 if (transport_.get() && transport_->socket())
385 return transport_->socket()->GetConnectTimeMicros();
386 NOTREACHED();
387 return base::TimeDelta::FromMicroseconds(-1);
388 }
389
390 bool ProxyResolvingClientSocket::WasNpnNegotiated() const { 376 bool ProxyResolvingClientSocket::WasNpnNegotiated() const {
391 return false; 377 return false;
392 } 378 }
393 379
394 net::NextProto ProxyResolvingClientSocket::GetNegotiatedProtocol() const { 380 net::NextProto ProxyResolvingClientSocket::GetNegotiatedProtocol() const {
395 if (transport_.get() && transport_->socket()) 381 if (transport_.get() && transport_->socket())
396 return transport_->socket()->GetNegotiatedProtocol(); 382 return transport_->socket()->GetNegotiatedProtocol();
397 NOTREACHED(); 383 NOTREACHED();
398 return net::kProtoUnknown; 384 return net::kProtoUnknown;
399 } 385 }
400 386
401 bool ProxyResolvingClientSocket::GetSSLInfo(net::SSLInfo* ssl_info) { 387 bool ProxyResolvingClientSocket::GetSSLInfo(net::SSLInfo* ssl_info) {
402 return false; 388 return false;
403 } 389 }
404 390
405 void ProxyResolvingClientSocket::CloseTransportSocket() { 391 void ProxyResolvingClientSocket::CloseTransportSocket() {
406 if (transport_.get() && transport_->socket()) 392 if (transport_.get() && transport_->socket())
407 transport_->socket()->Disconnect(); 393 transport_->socket()->Disconnect();
408 transport_.reset(); 394 transport_.reset();
409 } 395 }
410 396
411 } // namespace jingle_glue 397 } // namespace jingle_glue
OLDNEW
« no previous file with comments | « jingle/glue/proxy_resolving_client_socket.h ('k') | jingle/glue/pseudotcp_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698