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 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 int64 PseudoTcpAdapter::NumBytesRead() const { | 566 int64 PseudoTcpAdapter::NumBytesRead() const { |
567 DCHECK(CalledOnValidThread()); | 567 DCHECK(CalledOnValidThread()); |
568 return -1; | 568 return -1; |
569 } | 569 } |
570 | 570 |
571 base::TimeDelta PseudoTcpAdapter::GetConnectTimeMicros() const { | 571 base::TimeDelta PseudoTcpAdapter::GetConnectTimeMicros() const { |
572 DCHECK(CalledOnValidThread()); | 572 DCHECK(CalledOnValidThread()); |
573 return base::TimeDelta::FromMicroseconds(-1); | 573 return base::TimeDelta::FromMicroseconds(-1); |
574 } | 574 } |
575 | 575 |
| 576 bool PseudoTcpAdapter::WasNpnNegotiated() const { |
| 577 DCHECK(CalledOnValidThread()); |
| 578 return false; |
| 579 } |
| 580 |
576 net::NextProto PseudoTcpAdapter::GetNegotiatedProtocol() const { | 581 net::NextProto PseudoTcpAdapter::GetNegotiatedProtocol() const { |
577 DCHECK(CalledOnValidThread()); | 582 DCHECK(CalledOnValidThread()); |
578 return net::kProtoUnknown; | 583 return net::kProtoUnknown; |
579 } | 584 } |
580 | 585 |
| 586 bool PseudoTcpAdapter::GetSSLInfo(net::SSLInfo* ssl_info) { |
| 587 DCHECK(CalledOnValidThread()); |
| 588 return false; |
| 589 } |
| 590 |
581 void PseudoTcpAdapter::SetAckDelay(int delay_ms) { | 591 void PseudoTcpAdapter::SetAckDelay(int delay_ms) { |
582 DCHECK(CalledOnValidThread()); | 592 DCHECK(CalledOnValidThread()); |
583 core_->SetAckDelay(delay_ms); | 593 core_->SetAckDelay(delay_ms); |
584 } | 594 } |
585 | 595 |
586 void PseudoTcpAdapter::SetNoDelay(bool no_delay) { | 596 void PseudoTcpAdapter::SetNoDelay(bool no_delay) { |
587 DCHECK(CalledOnValidThread()); | 597 DCHECK(CalledOnValidThread()); |
588 core_->SetNoDelay(no_delay); | 598 core_->SetNoDelay(no_delay); |
589 } | 599 } |
590 | 600 |
591 void PseudoTcpAdapter::SetWriteWaitsForSend(bool write_waits_for_send) { | 601 void PseudoTcpAdapter::SetWriteWaitsForSend(bool write_waits_for_send) { |
592 DCHECK(CalledOnValidThread()); | 602 DCHECK(CalledOnValidThread()); |
593 core_->SetWriteWaitsForSend(write_waits_for_send); | 603 core_->SetWriteWaitsForSend(write_waits_for_send); |
594 } | 604 } |
595 | 605 |
596 } // namespace jingle_glue | 606 } // namespace jingle_glue |
OLD | NEW |