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 <list> | 11 #include <list> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/containers/hash_tables.h" | 14 #include "base/containers/hash_tables.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "net/base/ip_endpoint.h" | 16 #include "net/base/ip_endpoint.h" |
17 #include "net/base/linked_hash_map.h" | 17 #include "net/base/linked_hash_map.h" |
18 #include "net/quic/quic_blocked_writer_interface.h" | 18 #include "net/quic/quic_blocked_writer_interface.h" |
19 #include "net/quic/quic_protocol.h" | 19 #include "net/quic/quic_protocol.h" |
20 #include "net/tools/epoll_server/epoll_server.h" | |
21 #include "net/tools/quic/quic_server_session.h" | 20 #include "net/tools/quic/quic_server_session.h" |
22 #include "net/tools/quic/quic_time_wait_list_manager.h" | 21 #include "net/tools/quic/quic_time_wait_list_manager.h" |
23 | 22 |
24 #if defined(COMPILER_GCC) | 23 #if defined(COMPILER_GCC) |
25 namespace BASE_HASH_NAMESPACE { | 24 namespace BASE_HASH_NAMESPACE { |
26 template<> | 25 template<> |
27 struct hash<net::QuicBlockedWriterInterface*> { | 26 struct hash<net::QuicBlockedWriterInterface*> { |
28 std::size_t operator()( | 27 std::size_t operator()( |
29 const net::QuicBlockedWriterInterface* ptr) const { | 28 const net::QuicBlockedWriterInterface* ptr) const { |
30 return hash<size_t>()(reinterpret_cast<size_t>(ptr)); | 29 return hash<size_t>()(reinterpret_cast<size_t>(ptr)); |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 // connections. | 242 // connections. |
244 const uint32 initial_flow_control_window_bytes_; | 243 const uint32 initial_flow_control_window_bytes_; |
245 | 244 |
246 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); | 245 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); |
247 }; | 246 }; |
248 | 247 |
249 } // namespace tools | 248 } // namespace tools |
250 } // namespace net | 249 } // namespace net |
251 | 250 |
252 #endif // NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ | 251 #endif // NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ |
OLD | NEW |