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 // A server side dispatcher which dispatches a given client's data to their | 5 // A server side dispatcher which dispatches a given client's data to their |
6 // stream. | 6 // stream. |
7 | 7 |
8 #ifndef NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ | 8 #ifndef NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ |
9 #define NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ | 9 #define NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ |
10 | 10 |
11 #include <memory> | 11 #include <memory> |
12 #include <unordered_map> | 12 #include <unordered_map> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "net/base/linked_hash_map.h" | 16 #include "net/base/linked_hash_map.h" |
17 #include "net/quic/core/crypto/quic_compressed_certs_cache.h" | 17 #include "net/quic/core/crypto/quic_compressed_certs_cache.h" |
18 #include "net/quic/core/crypto/quic_random.h" | 18 #include "net/quic/core/crypto/quic_random.h" |
19 #include "net/quic/core/quic_blocked_writer_interface.h" | 19 #include "net/quic/core/quic_blocked_writer_interface.h" |
20 #include "net/quic/core/quic_buffered_packet_store.h" | 20 #include "net/quic/core/quic_buffered_packet_store.h" |
21 #include "net/quic/core/quic_connection.h" | 21 #include "net/quic/core/quic_connection.h" |
22 #include "net/quic/core/quic_crypto_server_stream.h" | 22 #include "net/quic/core/quic_crypto_server_stream.h" |
23 #include "net/quic/core/quic_protocol.h" | 23 #include "net/quic/core/quic_packets.h" |
24 #include "net/quic/core/quic_session.h" | 24 #include "net/quic/core/quic_session.h" |
| 25 #include "net/quic/core/quic_version_manager.h" |
25 #include "net/quic/platform/api/quic_socket_address.h" | 26 #include "net/quic/platform/api/quic_socket_address.h" |
26 | 27 |
27 #include "net/tools/quic/quic_process_packet_interface.h" | 28 #include "net/tools/quic/quic_process_packet_interface.h" |
28 #include "net/tools/quic/quic_time_wait_list_manager.h" | 29 #include "net/tools/quic/quic_time_wait_list_manager.h" |
29 #include "net/tools/quic/stateless_rejector.h" | 30 #include "net/tools/quic/stateless_rejector.h" |
30 | 31 |
31 namespace net { | 32 namespace net { |
32 | 33 |
33 class QuicConfig; | 34 class QuicConfig; |
34 class QuicCryptoServerConfig; | 35 class QuicCryptoServerConfig; |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 // A backward counter of how many new sessions can be create within current | 389 // A backward counter of how many new sessions can be create within current |
389 // event loop. When reaches 0, it means can't create sessions for now. | 390 // event loop. When reaches 0, it means can't create sessions for now. |
390 int16_t new_sessions_allowed_per_event_loop_; | 391 int16_t new_sessions_allowed_per_event_loop_; |
391 | 392 |
392 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); | 393 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); |
393 }; | 394 }; |
394 | 395 |
395 } // namespace net | 396 } // namespace net |
396 | 397 |
397 #endif // NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ | 398 #endif // NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ |
OLD | NEW |