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 #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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 int GetPeerAddress(net::IPEndPoint* address) const override; | 46 int GetPeerAddress(net::IPEndPoint* address) const override; |
47 int GetLocalAddress(net::IPEndPoint* address) const override; | 47 int GetLocalAddress(net::IPEndPoint* address) const override; |
48 const net::BoundNetLog& NetLog() const override; | 48 const net::BoundNetLog& NetLog() const override; |
49 void SetSubresourceSpeculation() override; | 49 void SetSubresourceSpeculation() override; |
50 void SetOmniboxSpeculation() override; | 50 void SetOmniboxSpeculation() override; |
51 bool WasEverUsed() const override; | 51 bool WasEverUsed() const override; |
52 bool UsingTCPFastOpen() const override; | 52 bool UsingTCPFastOpen() const override; |
53 bool WasNpnNegotiated() const override; | 53 bool WasNpnNegotiated() const override; |
54 net::NextProto GetNegotiatedProtocol() const override; | 54 net::NextProto GetNegotiatedProtocol() const override; |
55 bool GetSSLInfo(net::SSLInfo* ssl_info) override; | 55 bool GetSSLInfo(net::SSLInfo* ssl_info) override; |
| 56 void GetConnectionAttempts(net::ConnectionAttempts* out) const override; |
| 57 void ClearConnectionAttempts() override {} |
| 58 void AddConnectionAttempts(const net::ConnectionAttempts& attempts) override { |
| 59 } |
56 | 60 |
57 // Set the delay for sending ACK. | 61 // Set the delay for sending ACK. |
58 void SetAckDelay(int delay_ms); | 62 void SetAckDelay(int delay_ms); |
59 | 63 |
60 // Set whether Nagle's algorithm is enabled. | 64 // Set whether Nagle's algorithm is enabled. |
61 void SetNoDelay(bool no_delay); | 65 void SetNoDelay(bool no_delay); |
62 | 66 |
63 // When write_waits_for_send flag is set to true the Write() method | 67 // When write_waits_for_send flag is set to true the Write() method |
64 // will wait until the data is sent to the remote end before the | 68 // will wait until the data is sent to the remote end before the |
65 // write completes (it still doesn't wait until the data is received | 69 // write completes (it still doesn't wait until the data is received |
(...skipping 18 matching lines...) Expand all Loading... |
84 scoped_refptr<Core> core_; | 88 scoped_refptr<Core> core_; |
85 | 89 |
86 net::BoundNetLog net_log_; | 90 net::BoundNetLog net_log_; |
87 | 91 |
88 DISALLOW_COPY_AND_ASSIGN(PseudoTcpAdapter); | 92 DISALLOW_COPY_AND_ASSIGN(PseudoTcpAdapter); |
89 }; | 93 }; |
90 | 94 |
91 } // namespace jingle_glue | 95 } // namespace jingle_glue |
92 | 96 |
93 #endif // JINGLE_GLUE_PSEUDOTCP_ADAPTER_H_ | 97 #endif // JINGLE_GLUE_PSEUDOTCP_ADAPTER_H_ |
OLD | NEW |