| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef JINGLE_GLUE_PSEUDOTCP_ADAPTER_H_ | 5 #ifndef JINGLE_GLUE_PSEUDOTCP_ADAPTER_H_ |
| 6 #define JINGLE_GLUE_PSEUDOTCP_ADAPTER_H_ | 6 #define JINGLE_GLUE_PSEUDOTCP_ADAPTER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 virtual void Disconnect() OVERRIDE; | 39 virtual void Disconnect() OVERRIDE; |
| 40 virtual bool IsConnected() const OVERRIDE; | 40 virtual bool IsConnected() const OVERRIDE; |
| 41 virtual bool IsConnectedAndIdle() const OVERRIDE; | 41 virtual bool IsConnectedAndIdle() const OVERRIDE; |
| 42 virtual int GetPeerAddress(net::AddressList* address) const OVERRIDE; | 42 virtual int GetPeerAddress(net::AddressList* address) const OVERRIDE; |
| 43 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE; | 43 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE; |
| 44 virtual const net::BoundNetLog& NetLog() const OVERRIDE; | 44 virtual const net::BoundNetLog& NetLog() const OVERRIDE; |
| 45 virtual void SetSubresourceSpeculation() OVERRIDE; | 45 virtual void SetSubresourceSpeculation() OVERRIDE; |
| 46 virtual void SetOmniboxSpeculation() OVERRIDE; | 46 virtual void SetOmniboxSpeculation() OVERRIDE; |
| 47 virtual bool WasEverUsed() const OVERRIDE; | 47 virtual bool WasEverUsed() const OVERRIDE; |
| 48 virtual bool UsingTCPFastOpen() const OVERRIDE; | 48 virtual bool UsingTCPFastOpen() const OVERRIDE; |
| 49 virtual int NumBytesRead() const OVERRIDE; |
| 50 virtual double GetRTTInMs() const; |
| 49 | 51 |
| 50 // cricket::IPseudoTcpNotify implementation. | 52 // cricket::IPseudoTcpNotify implementation. |
| 51 virtual void OnTcpOpen(cricket::PseudoTcp* tcp) OVERRIDE; | 53 virtual void OnTcpOpen(cricket::PseudoTcp* tcp) OVERRIDE; |
| 52 virtual void OnTcpReadable(cricket::PseudoTcp* tcp) OVERRIDE; | 54 virtual void OnTcpReadable(cricket::PseudoTcp* tcp) OVERRIDE; |
| 53 virtual void OnTcpWriteable(cricket::PseudoTcp* tcp) OVERRIDE; | 55 virtual void OnTcpWriteable(cricket::PseudoTcp* tcp) OVERRIDE; |
| 54 virtual void OnTcpClosed(cricket::PseudoTcp* tcp, uint32 error) OVERRIDE; | 56 virtual void OnTcpClosed(cricket::PseudoTcp* tcp, uint32 error) OVERRIDE; |
| 55 virtual WriteResult TcpWritePacket(cricket::PseudoTcp* tcp, | 57 virtual WriteResult TcpWritePacket(cricket::PseudoTcp* tcp, |
| 56 const char* buffer, size_t len) OVERRIDE; | 58 const char* buffer, size_t len) OVERRIDE; |
| 57 | 59 |
| 58 private: | 60 private: |
| (...skipping 27 matching lines...) Expand all Loading... |
| 86 base::OneShotTimer<PseudoTcpAdapter> timer_; | 88 base::OneShotTimer<PseudoTcpAdapter> timer_; |
| 87 | 89 |
| 88 net::BoundNetLog net_log_; | 90 net::BoundNetLog net_log_; |
| 89 | 91 |
| 90 DISALLOW_COPY_AND_ASSIGN(PseudoTcpAdapter); | 92 DISALLOW_COPY_AND_ASSIGN(PseudoTcpAdapter); |
| 91 }; | 93 }; |
| 92 | 94 |
| 93 } // namespace jingle_glue | 95 } // namespace jingle_glue |
| 94 | 96 |
| 95 #endif // JINGLE_GLUE_STREAM_SOCKET_ADAPTER_H_ | 97 #endif // JINGLE_GLUE_STREAM_SOCKET_ADAPTER_H_ |
| OLD | NEW |