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 "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 Loading... |
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 Loading... |
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 |
OLD | NEW |