| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 97 |
| 98 static QuicConnectionHelperInterface* GetHelper(QuicConnection* connection); | 98 static QuicConnectionHelperInterface* GetHelper(QuicConnection* connection); |
| 99 | 99 |
| 100 static QuicFramer* GetFramer(QuicConnection* connection); | 100 static QuicFramer* GetFramer(QuicConnection* connection); |
| 101 | 101 |
| 102 // Set last_header_->fec_group = fec_group and return connection->GetFecGroup | 102 // Set last_header_->fec_group = fec_group and return connection->GetFecGroup |
| 103 static QuicFecGroup* GetFecGroup(QuicConnection* connection, int fec_group); | 103 static QuicFecGroup* GetFecGroup(QuicConnection* connection, int fec_group); |
| 104 | 104 |
| 105 static QuicAlarm* GetAckAlarm(QuicConnection* connection); | 105 static QuicAlarm* GetAckAlarm(QuicConnection* connection); |
| 106 static QuicAlarm* GetPingAlarm(QuicConnection* connection); | 106 static QuicAlarm* GetPingAlarm(QuicConnection* connection); |
| 107 static QuicAlarm* GetFecAlarm(QuicConnection* connection); |
| 107 static QuicAlarm* GetResumeWritesAlarm(QuicConnection* connection); | 108 static QuicAlarm* GetResumeWritesAlarm(QuicConnection* connection); |
| 108 static QuicAlarm* GetRetransmissionAlarm(QuicConnection* connection); | 109 static QuicAlarm* GetRetransmissionAlarm(QuicConnection* connection); |
| 109 static QuicAlarm* GetSendAlarm(QuicConnection* connection); | 110 static QuicAlarm* GetSendAlarm(QuicConnection* connection); |
| 110 static QuicAlarm* GetTimeoutAlarm(QuicConnection* connection); | 111 static QuicAlarm* GetTimeoutAlarm(QuicConnection* connection); |
| 111 | 112 |
| 112 static QuicPacketWriter* GetWriter(QuicConnection* connection); | 113 static QuicPacketWriter* GetWriter(QuicConnection* connection); |
| 113 // If |owns_writer| is true, takes ownership of |writer|. | 114 // If |owns_writer| is true, takes ownership of |writer|. |
| 114 static void SetWriter(QuicConnection* connection, | 115 static void SetWriter(QuicConnection* connection, |
| 115 QuicPacketWriter* writer, | 116 QuicPacketWriter* writer, |
| 116 bool owns_writer); | 117 bool owns_writer); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 130 | 131 |
| 131 private: | 132 private: |
| 132 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); | 133 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); |
| 133 }; | 134 }; |
| 134 | 135 |
| 135 } // namespace test | 136 } // namespace test |
| 136 | 137 |
| 137 } // namespace net | 138 } // namespace net |
| 138 | 139 |
| 139 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ | 140 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ |
| OLD | NEW |