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 14 matching lines...) Expand all Loading... |
25 // Injects |writer| into |dispatcher| as the shared writer. | 25 // Injects |writer| into |dispatcher| as the shared writer. |
26 static void UseWriter(QuicDispatcher* dispatcher, | 26 static void UseWriter(QuicDispatcher* dispatcher, |
27 QuicPacketWriterWrapper* writer); | 27 QuicPacketWriterWrapper* writer); |
28 | 28 |
29 static QuicPacketWriter* GetWriter(QuicDispatcher* dispatcher); | 29 static QuicPacketWriter* GetWriter(QuicDispatcher* dispatcher); |
30 | 30 |
31 static QuicCompressedCertsCache* GetCache(QuicDispatcher* dispatcher); | 31 static QuicCompressedCertsCache* GetCache(QuicDispatcher* dispatcher); |
32 | 32 |
33 static QuicConnectionHelperInterface* GetHelper(QuicDispatcher* dispatcher); | 33 static QuicConnectionHelperInterface* GetHelper(QuicDispatcher* dispatcher); |
34 | 34 |
| 35 static QuicAlarmFactory* GetAlarmFactory(QuicDispatcher* dispatcher); |
| 36 |
35 static QuicDispatcher::WriteBlockedList* GetWriteBlockedList( | 37 static QuicDispatcher::WriteBlockedList* GetWriteBlockedList( |
36 QuicDispatcher* dispatcher); | 38 QuicDispatcher* dispatcher); |
37 | 39 |
38 // Get the dispatcher's record of the last error reported to its framer | 40 // Get the dispatcher's record of the last error reported to its framer |
39 // visitor's OnError() method. Then set that record to QUIC_NO_ERROR. | 41 // visitor's OnError() method. Then set that record to QUIC_NO_ERROR. |
40 static QuicErrorCode GetAndClearLastError(QuicDispatcher* dispatcher); | 42 static QuicErrorCode GetAndClearLastError(QuicDispatcher* dispatcher); |
41 | 43 |
42 static const QuicDispatcher::SessionMap& session_map( | 44 static const QuicDispatcher::SessionMap& session_map( |
43 QuicDispatcher* dispatcher); | 45 QuicDispatcher* dispatcher); |
44 | 46 |
45 private: | 47 private: |
46 DISALLOW_COPY_AND_ASSIGN(QuicDispatcherPeer); | 48 DISALLOW_COPY_AND_ASSIGN(QuicDispatcherPeer); |
47 }; | 49 }; |
48 | 50 |
49 } // namespace test | 51 } // namespace test |
50 } // namespace net | 52 } // namespace net |
51 | 53 |
52 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_DISPATCHER_PEER_H_ | 54 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_DISPATCHER_PEER_H_ |
OLD | NEW |