OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_TOOLS_QUIC_TEST_TOOLS_QUIC_DISPATCHER_PEER_H_ | 5 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_QUIC_DISPATCHER_PEER_H_ |
6 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_DISPATCHER_PEER_H_ | 6 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_DISPATCHER_PEER_H_ |
7 | 7 |
8 #include "net/tools/quic/quic_dispatcher.h" | 8 #include "net/tools/quic/quic_dispatcher.h" |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 static QuicBufferedPacketStore* GetBufferedPackets( | 44 static QuicBufferedPacketStore* GetBufferedPackets( |
45 QuicDispatcher* dispatcher); | 45 QuicDispatcher* dispatcher); |
46 | 46 |
47 static const QuicDispatcher::SessionMap& session_map( | 47 static const QuicDispatcher::SessionMap& session_map( |
48 QuicDispatcher* dispatcher); | 48 QuicDispatcher* dispatcher); |
49 | 49 |
50 static void set_new_sessions_allowed_per_event_loop( | 50 static void set_new_sessions_allowed_per_event_loop( |
51 QuicDispatcher* dispatcher, | 51 QuicDispatcher* dispatcher, |
52 size_t num_session_allowed); | 52 size_t num_session_allowed); |
53 | 53 |
| 54 static void SendPublicReset(QuicDispatcher* dispatcher, |
| 55 const IPEndPoint& server_address, |
| 56 const IPEndPoint& client_address, |
| 57 QuicConnectionId connection_id, |
| 58 QuicPacketNumber rejected_packet_number); |
| 59 |
54 private: | 60 private: |
55 DISALLOW_COPY_AND_ASSIGN(QuicDispatcherPeer); | 61 DISALLOW_COPY_AND_ASSIGN(QuicDispatcherPeer); |
56 }; | 62 }; |
57 | 63 |
58 } // namespace test | 64 } // namespace test |
59 } // namespace net | 65 } // namespace net |
60 | 66 |
61 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_DISPATCHER_PEER_H_ | 67 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_DISPATCHER_PEER_H_ |
OLD | NEW |