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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 static QuicFecGroup* GetFecGroup(QuicConnection* connection, int fec_group); | 99 static QuicFecGroup* GetFecGroup(QuicConnection* connection, int fec_group); |
100 | 100 |
101 static QuicAlarm* GetAckAlarm(QuicConnection* connection); | 101 static QuicAlarm* GetAckAlarm(QuicConnection* connection); |
102 static QuicAlarm* GetPingAlarm(QuicConnection* connection); | 102 static QuicAlarm* GetPingAlarm(QuicConnection* connection); |
103 static QuicAlarm* GetResumeWritesAlarm(QuicConnection* connection); | 103 static QuicAlarm* GetResumeWritesAlarm(QuicConnection* connection); |
104 static QuicAlarm* GetRetransmissionAlarm(QuicConnection* connection); | 104 static QuicAlarm* GetRetransmissionAlarm(QuicConnection* connection); |
105 static QuicAlarm* GetSendAlarm(QuicConnection* connection); | 105 static QuicAlarm* GetSendAlarm(QuicConnection* connection); |
106 static QuicAlarm* GetTimeoutAlarm(QuicConnection* connection); | 106 static QuicAlarm* GetTimeoutAlarm(QuicConnection* connection); |
107 | 107 |
108 static QuicPacketWriter* GetWriter(QuicConnection* connection); | 108 static QuicPacketWriter* GetWriter(QuicConnection* connection); |
109 static void SetWriter(QuicConnection* connection, QuicPacketWriter* writer); | 109 // If |owns_writer| is true, takes ownership of |writer|. |
| 110 static void SetWriter(QuicConnection* connection, |
| 111 QuicPacketWriter* writer, |
| 112 bool owns_writer); |
110 static void CloseConnection(QuicConnection* connection); | 113 static void CloseConnection(QuicConnection* connection); |
111 static QuicEncryptedPacket* GetConnectionClosePacket( | 114 static QuicEncryptedPacket* GetConnectionClosePacket( |
112 QuicConnection* connection); | 115 QuicConnection* connection); |
113 | 116 |
114 static void SetSupportedVersions(QuicConnection* connection, | 117 static void SetSupportedVersions(QuicConnection* connection, |
115 QuicVersionVector versions); | 118 QuicVersionVector versions); |
116 | 119 |
117 private: | 120 private: |
118 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); | 121 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); |
119 }; | 122 }; |
120 | 123 |
121 } // namespace test | 124 } // namespace test |
122 | 125 |
123 } // namespace net | 126 } // namespace net |
124 | 127 |
125 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ | 128 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ |
OLD | NEW |