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

Side by Side Diff: jingle/glue/pseudotcp_adapter.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, 9 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/pseudotcp_adapter.h ('k') | net/http/http_basic_stream.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/pseudotcp_adapter.h" 5 #include "jingle/glue/pseudotcp_adapter.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "net/base/address_list.h" 10 #include "net/base/address_list.h"
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 DCHECK(CalledOnValidThread()); 556 DCHECK(CalledOnValidThread());
557 NOTIMPLEMENTED(); 557 NOTIMPLEMENTED();
558 return true; 558 return true;
559 } 559 }
560 560
561 bool PseudoTcpAdapter::UsingTCPFastOpen() const { 561 bool PseudoTcpAdapter::UsingTCPFastOpen() const {
562 DCHECK(CalledOnValidThread()); 562 DCHECK(CalledOnValidThread());
563 return false; 563 return false;
564 } 564 }
565 565
566 int64 PseudoTcpAdapter::NumBytesRead() const {
567 DCHECK(CalledOnValidThread());
568 return -1;
569 }
570
571 base::TimeDelta PseudoTcpAdapter::GetConnectTimeMicros() const {
572 DCHECK(CalledOnValidThread());
573 return base::TimeDelta::FromMicroseconds(-1);
574 }
575
576 bool PseudoTcpAdapter::WasNpnNegotiated() const { 566 bool PseudoTcpAdapter::WasNpnNegotiated() const {
577 DCHECK(CalledOnValidThread()); 567 DCHECK(CalledOnValidThread());
578 return false; 568 return false;
579 } 569 }
580 570
581 net::NextProto PseudoTcpAdapter::GetNegotiatedProtocol() const { 571 net::NextProto PseudoTcpAdapter::GetNegotiatedProtocol() const {
582 DCHECK(CalledOnValidThread()); 572 DCHECK(CalledOnValidThread());
583 return net::kProtoUnknown; 573 return net::kProtoUnknown;
584 } 574 }
585 575
(...skipping 11 matching lines...) Expand all
597 DCHECK(CalledOnValidThread()); 587 DCHECK(CalledOnValidThread());
598 core_->SetNoDelay(no_delay); 588 core_->SetNoDelay(no_delay);
599 } 589 }
600 590
601 void PseudoTcpAdapter::SetWriteWaitsForSend(bool write_waits_for_send) { 591 void PseudoTcpAdapter::SetWriteWaitsForSend(bool write_waits_for_send) {
602 DCHECK(CalledOnValidThread()); 592 DCHECK(CalledOnValidThread());
603 core_->SetWriteWaitsForSend(write_waits_for_send); 593 core_->SetWriteWaitsForSend(write_waits_for_send);
604 } 594 }
605 595
606 } // namespace jingle_glue 596 } // namespace jingle_glue
OLDNEW
« no previous file with comments | « jingle/glue/pseudotcp_adapter.h ('k') | net/http/http_basic_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698