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 24 matching lines...) Expand all Loading... |
35 class QuicConnectionPeer { | 35 class QuicConnectionPeer { |
36 public: | 36 public: |
37 static void SendAck(QuicConnection* connection); | 37 static void SendAck(QuicConnection* connection); |
38 | 38 |
39 static void SetReceiveAlgorithm(QuicConnection* connection, | 39 static void SetReceiveAlgorithm(QuicConnection* connection, |
40 ReceiveAlgorithmInterface* receive_algorithm); | 40 ReceiveAlgorithmInterface* receive_algorithm); |
41 | 41 |
42 static void SetSendAlgorithm(QuicConnection* connection, | 42 static void SetSendAlgorithm(QuicConnection* connection, |
43 SendAlgorithmInterface* send_algorithm); | 43 SendAlgorithmInterface* send_algorithm); |
44 | 44 |
45 static QuicAckFrame* CreateAckFrame(QuicConnection* connection); | 45 static void PopulateAckFrame(QuicConnection* connection, QuicAckFrame* ack); |
46 | 46 |
47 static QuicStopWaitingFrame* CreateStopWaitingFrame( | 47 static void PopulateStopWaitingFrame(QuicConnection* connection, |
48 QuicConnection* connection); | 48 QuicStopWaitingFrame* stop_waiting); |
49 | 49 |
50 static QuicConnectionVisitorInterface* GetVisitor( | 50 static QuicConnectionVisitorInterface* GetVisitor( |
51 QuicConnection* connection); | 51 QuicConnection* connection); |
52 | 52 |
53 static QuicPacketCreator* GetPacketCreator(QuicConnection* connection); | 53 static QuicPacketCreator* GetPacketCreator(QuicConnection* connection); |
54 | 54 |
55 static QuicPacketGenerator* GetPacketGenerator(QuicConnection* connection); | 55 static QuicPacketGenerator* GetPacketGenerator(QuicConnection* connection); |
56 | 56 |
57 static QuicSentPacketManager* GetSentPacketManager( | 57 static QuicSentPacketManager* GetSentPacketManager( |
58 QuicConnection* connection); | 58 QuicConnection* connection); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 | 131 |
132 private: | 132 private: |
133 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); | 133 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); |
134 }; | 134 }; |
135 | 135 |
136 } // namespace test | 136 } // namespace test |
137 | 137 |
138 } // namespace net | 138 } // namespace net |
139 | 139 |
140 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ | 140 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ |
OLD | NEW |