| 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 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 int64 PseudoTcpAdapter::NumBytesRead() const { | 496 int64 PseudoTcpAdapter::NumBytesRead() const { |
| 497 DCHECK(CalledOnValidThread()); | 497 DCHECK(CalledOnValidThread()); |
| 498 return -1; | 498 return -1; |
| 499 } | 499 } |
| 500 | 500 |
| 501 base::TimeDelta PseudoTcpAdapter::GetConnectTimeMicros() const { | 501 base::TimeDelta PseudoTcpAdapter::GetConnectTimeMicros() const { |
| 502 DCHECK(CalledOnValidThread()); | 502 DCHECK(CalledOnValidThread()); |
| 503 return base::TimeDelta::FromMicroseconds(-1); | 503 return base::TimeDelta::FromMicroseconds(-1); |
| 504 } | 504 } |
| 505 | 505 |
| 506 net::NextProto PseudoTcpAdapter::GetNegotiatedProtocol() const { |
| 507 DCHECK(CalledOnValidThread()); |
| 508 return net::kProtoUnknown; |
| 509 } |
| 510 |
| 506 void PseudoTcpAdapter::SetAckDelay(int delay_ms) { | 511 void PseudoTcpAdapter::SetAckDelay(int delay_ms) { |
| 507 DCHECK(CalledOnValidThread()); | 512 DCHECK(CalledOnValidThread()); |
| 508 core_->SetAckDelay(delay_ms); | 513 core_->SetAckDelay(delay_ms); |
| 509 } | 514 } |
| 510 | 515 |
| 511 void PseudoTcpAdapter::SetNoDelay(bool no_delay) { | 516 void PseudoTcpAdapter::SetNoDelay(bool no_delay) { |
| 512 DCHECK(CalledOnValidThread()); | 517 DCHECK(CalledOnValidThread()); |
| 513 core_->SetNoDelay(no_delay); | 518 core_->SetNoDelay(no_delay); |
| 514 } | 519 } |
| 515 | 520 |
| 516 } // namespace jingle_glue | 521 } // namespace jingle_glue |
| OLD | NEW |