OLD | NEW |
1 // Copyright (c) 2011 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 #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" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 virtual bool IsConnectedAndIdle() const OVERRIDE; | 44 virtual bool IsConnectedAndIdle() const OVERRIDE; |
45 virtual int GetPeerAddress(net::AddressList* address) const OVERRIDE; | 45 virtual int GetPeerAddress(net::AddressList* address) const OVERRIDE; |
46 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE; | 46 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE; |
47 virtual const net::BoundNetLog& NetLog() const OVERRIDE; | 47 virtual const net::BoundNetLog& NetLog() const OVERRIDE; |
48 virtual void SetSubresourceSpeculation() OVERRIDE; | 48 virtual void SetSubresourceSpeculation() OVERRIDE; |
49 virtual void SetOmniboxSpeculation() OVERRIDE; | 49 virtual void SetOmniboxSpeculation() OVERRIDE; |
50 virtual bool WasEverUsed() const OVERRIDE; | 50 virtual bool WasEverUsed() const OVERRIDE; |
51 virtual bool UsingTCPFastOpen() const OVERRIDE; | 51 virtual bool UsingTCPFastOpen() const OVERRIDE; |
52 virtual int64 NumBytesRead() const OVERRIDE; | 52 virtual int64 NumBytesRead() const OVERRIDE; |
53 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; | 53 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; |
| 54 virtual net::NextProto GetNegotiatedProtocol() const OVERRIDE; |
54 | 55 |
55 // Set the delay for sending ACK. | 56 // Set the delay for sending ACK. |
56 void SetAckDelay(int delay_ms); | 57 void SetAckDelay(int delay_ms); |
57 | 58 |
58 // Set whether Nagle's algorithm is enabled. | 59 // Set whether Nagle's algorithm is enabled. |
59 void SetNoDelay(bool no_delay); | 60 void SetNoDelay(bool no_delay); |
60 | 61 |
61 private: | 62 private: |
62 class Core; | 63 class Core; |
63 | 64 |
64 scoped_refptr<Core> core_; | 65 scoped_refptr<Core> core_; |
65 | 66 |
66 net::BoundNetLog net_log_; | 67 net::BoundNetLog net_log_; |
67 | 68 |
68 DISALLOW_COPY_AND_ASSIGN(PseudoTcpAdapter); | 69 DISALLOW_COPY_AND_ASSIGN(PseudoTcpAdapter); |
69 }; | 70 }; |
70 | 71 |
71 } // namespace jingle_glue | 72 } // namespace jingle_glue |
72 | 73 |
73 #endif // JINGLE_GLUE_STREAM_SOCKET_ADAPTER_H_ | 74 #endif // JINGLE_GLUE_STREAM_SOCKET_ADAPTER_H_ |
OLD | NEW |