Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: net/tools/quic/quic_dispatcher.h

Issue 25085002: Break out balsa and epoll_server from net/tools/flip_server. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/tools/quic/quic_client.cc ('k') | net/tools/quic/quic_dispatcher_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/containers/hash_tables.h" 13 #include "base/containers/hash_tables.h"
14 #include "net/base/ip_endpoint.h" 14 #include "net/base/ip_endpoint.h"
15 #include "net/base/linked_hash_map.h" 15 #include "net/base/linked_hash_map.h"
16 #include "net/quic/quic_blocked_writer_interface.h" 16 #include "net/quic/quic_blocked_writer_interface.h"
17 #include "net/quic/quic_protocol.h" 17 #include "net/quic/quic_protocol.h"
18 #include "net/tools/flip_server/epoll_server.h" 18 #include "net/tools/epoll_server/epoll_server.h"
19 #include "net/tools/quic/quic_packet_writer.h" 19 #include "net/tools/quic/quic_packet_writer.h"
20 #include "net/tools/quic/quic_server_session.h" 20 #include "net/tools/quic/quic_server_session.h"
21 #include "net/tools/quic/quic_time_wait_list_manager.h" 21 #include "net/tools/quic/quic_time_wait_list_manager.h"
22 22
23 #if defined(COMPILER_GCC) 23 #if defined(COMPILER_GCC)
24 namespace BASE_HASH_NAMESPACE { 24 namespace BASE_HASH_NAMESPACE {
25 template<> 25 template<>
26 struct hash<net::QuicBlockedWriterInterface*> { 26 struct hash<net::QuicBlockedWriterInterface*> {
27 std::size_t operator()( 27 std::size_t operator()(
28 const net::QuicBlockedWriterInterface* ptr) const { 28 const net::QuicBlockedWriterInterface* ptr) const {
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // False if we have gotten a call to OnCanWrite after the last failed write. 138 // False if we have gotten a call to OnCanWrite after the last failed write.
139 bool write_blocked_; 139 bool write_blocked_;
140 140
141 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); 141 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher);
142 }; 142 };
143 143
144 } // namespace tools 144 } // namespace tools
145 } // namespace net 145 } // namespace net
146 146
147 #endif // NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ 147 #endif // NET_TOOLS_QUIC_QUIC_DISPATCHER_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_client.cc ('k') | net/tools/quic/quic_dispatcher_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698