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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 static QuicConnectionVisitorInterface* GetVisitor( | 46 static QuicConnectionVisitorInterface* GetVisitor( |
47 QuicConnection* connection); | 47 QuicConnection* connection); |
48 | 48 |
49 static QuicPacketCreator* GetPacketCreator(QuicConnection* connection); | 49 static QuicPacketCreator* GetPacketCreator(QuicConnection* connection); |
50 | 50 |
51 static QuicPacketGenerator* GetPacketGenerator(QuicConnection* connection); | 51 static QuicPacketGenerator* GetPacketGenerator(QuicConnection* connection); |
52 | 52 |
53 static QuicSentPacketManager* GetSentPacketManager( | 53 static QuicSentPacketManager* GetSentPacketManager( |
54 QuicConnection* connection); | 54 QuicConnection* connection); |
55 | 55 |
56 static QuicReceivedPacketManager* GetReceivedPacketManager( | |
57 QuicConnection* connection); | |
58 | |
59 static QuicTime::Delta GetNetworkTimeout(QuicConnection* connection); | 56 static QuicTime::Delta GetNetworkTimeout(QuicConnection* connection); |
60 | 57 |
61 static bool IsSavedForRetransmission( | |
62 QuicConnection* connection, | |
63 QuicPacketSequenceNumber sequence_number); | |
64 | |
65 static bool IsRetransmission(QuicConnection* connection, | |
66 QuicPacketSequenceNumber sequence_number); | |
67 | |
68 static QuicPacketEntropyHash GetSentEntropyHash( | 58 static QuicPacketEntropyHash GetSentEntropyHash( |
69 QuicConnection* connection, | 59 QuicConnection* connection, |
70 QuicPacketSequenceNumber sequence_number); | 60 QuicPacketSequenceNumber sequence_number); |
71 | 61 |
72 static QuicPacketEntropyHash PacketEntropy( | 62 static QuicPacketEntropyHash PacketEntropy( |
73 QuicConnection* connection, | 63 QuicConnection* connection, |
74 QuicPacketSequenceNumber sequence_number); | 64 QuicPacketSequenceNumber sequence_number); |
75 | 65 |
76 static QuicPacketEntropyHash ReceivedEntropyHash( | 66 static QuicPacketEntropyHash ReceivedEntropyHash( |
77 QuicConnection* connection, | 67 QuicConnection* connection, |
(...skipping 30 matching lines...) Expand all Loading... |
108 | 98 |
109 static QuicPacketWriter* GetWriter(QuicConnection* connection); | 99 static QuicPacketWriter* GetWriter(QuicConnection* connection); |
110 // If |owns_writer| is true, takes ownership of |writer|. | 100 // If |owns_writer| is true, takes ownership of |writer|. |
111 static void SetWriter(QuicConnection* connection, | 101 static void SetWriter(QuicConnection* connection, |
112 QuicPacketWriter* writer, | 102 QuicPacketWriter* writer, |
113 bool owns_writer); | 103 bool owns_writer); |
114 static void CloseConnection(QuicConnection* connection); | 104 static void CloseConnection(QuicConnection* connection); |
115 static QuicEncryptedPacket* GetConnectionClosePacket( | 105 static QuicEncryptedPacket* GetConnectionClosePacket( |
116 QuicConnection* connection); | 106 QuicConnection* connection); |
117 | 107 |
118 static void SetSupportedVersions(QuicConnection* connection, | |
119 QuicVersionVector versions); | |
120 | |
121 static QuicPacketHeader* GetLastHeader(QuicConnection* connection); | 108 static QuicPacketHeader* GetLastHeader(QuicConnection* connection); |
122 | 109 |
123 static void SetSequenceNumberOfLastSentPacket( | 110 static void SetSequenceNumberOfLastSentPacket( |
124 QuicConnection* connection, QuicPacketSequenceNumber number); | 111 QuicConnection* connection, QuicPacketSequenceNumber number); |
125 | 112 |
126 static QuicConnectionStats* GetStats(QuicConnection* connection); | 113 static QuicConnectionStats* GetStats(QuicConnection* connection); |
127 | 114 |
128 private: | 115 private: |
129 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); | 116 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); |
130 }; | 117 }; |
131 | 118 |
132 } // namespace test | 119 } // namespace test |
133 | 120 |
134 } // namespace net | 121 } // namespace net |
135 | 122 |
136 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ | 123 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ |
OLD | NEW |