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 NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ | 5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ |
6 #define NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ | 6 #define NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "net/base/ip_endpoint.h" | 9 #include "net/base/ip_endpoint.h" |
10 #include "net/quic/quic_connection_stats.h" | 10 #include "net/quic/quic_connection_stats.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 static bool IsServer(QuicConnection* connection); | 84 static bool IsServer(QuicConnection* connection); |
85 | 85 |
86 static void SetIsServer(QuicConnection* connection, bool is_server); | 86 static void SetIsServer(QuicConnection* connection, bool is_server); |
87 | 87 |
88 static void SetSelfAddress(QuicConnection* connection, | 88 static void SetSelfAddress(QuicConnection* connection, |
89 const IPEndPoint& self_address); | 89 const IPEndPoint& self_address); |
90 | 90 |
91 static void SetPeerAddress(QuicConnection* connection, | 91 static void SetPeerAddress(QuicConnection* connection, |
92 const IPEndPoint& peer_address); | 92 const IPEndPoint& peer_address); |
93 | 93 |
| 94 static bool IsSilentCloseEnabled(QuicConnection* connection); |
| 95 |
94 static void SwapCrypters(QuicConnection* connection, QuicFramer* framer); | 96 static void SwapCrypters(QuicConnection* connection, QuicFramer* framer); |
95 | 97 |
96 static QuicConnectionHelperInterface* GetHelper(QuicConnection* connection); | 98 static QuicConnectionHelperInterface* GetHelper(QuicConnection* connection); |
97 | 99 |
98 static QuicFramer* GetFramer(QuicConnection* connection); | 100 static QuicFramer* GetFramer(QuicConnection* connection); |
99 | 101 |
100 // Set last_header_->fec_group = fec_group and return connection->GetFecGroup | 102 // Set last_header_->fec_group = fec_group and return connection->GetFecGroup |
101 static QuicFecGroup* GetFecGroup(QuicConnection* connection, int fec_group); | 103 static QuicFecGroup* GetFecGroup(QuicConnection* connection, int fec_group); |
102 | 104 |
103 static QuicAlarm* GetAckAlarm(QuicConnection* connection); | 105 static QuicAlarm* GetAckAlarm(QuicConnection* connection); |
(...skipping 22 matching lines...) Expand all Loading... |
126 | 128 |
127 private: | 129 private: |
128 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); | 130 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); |
129 }; | 131 }; |
130 | 132 |
131 } // namespace test | 133 } // namespace test |
132 | 134 |
133 } // namespace net | 135 } // namespace net |
134 | 136 |
135 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ | 137 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ |
OLD | NEW |