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

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

Issue 467963002: Refactoring: Create per-connection packet writers in QuicDispatcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase onto ToT Created 6 years, 4 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
« no previous file with comments | « net/tools/quic/quic_per_connection_packet_writer.cc ('k') | net/tools/quic/quic_server.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 toy server, which listens on a specified address for QUIC traffic and 5 // A toy server, which listens on a specified address for QUIC traffic and
6 // handles incoming responses. 6 // handles incoming responses.
7 7
8 #ifndef NET_TOOLS_QUIC_QUIC_SERVER_H_ 8 #ifndef NET_TOOLS_QUIC_QUIC_SERVER_H_
9 #define NET_TOOLS_QUIC_QUIC_SERVER_H_ 9 #define NET_TOOLS_QUIC_QUIC_SERVER_H_
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "net/base/ip_endpoint.h" 13 #include "net/base/ip_endpoint.h"
14 #include "net/quic/crypto/quic_crypto_server_config.h" 14 #include "net/quic/crypto/quic_crypto_server_config.h"
15 #include "net/quic/quic_config.h" 15 #include "net/quic/quic_config.h"
16 #include "net/quic/quic_framer.h" 16 #include "net/quic/quic_framer.h"
17 #include "net/tools/epoll_server/epoll_server.h" 17 #include "net/tools/epoll_server/epoll_server.h"
18 #include "net/tools/quic/quic_dispatcher.h" 18 #include "net/tools/quic/quic_dispatcher.h"
19 19
20 namespace net { 20 namespace net {
21 21
22 namespace tools { 22 namespace tools {
23 23
24 namespace test { 24 namespace test {
25 class QuicServerPeer; 25 class QuicServerPeer;
26 } // namespace test 26 } // namespace test
27 27
28 class QuicDispatcher;
29
30 class QuicServer : public EpollCallbackInterface { 28 class QuicServer : public EpollCallbackInterface {
31 public: 29 public:
32 QuicServer(); 30 QuicServer();
33 QuicServer(const QuicConfig& config, 31 QuicServer(const QuicConfig& config,
34 const QuicVersionVector& supported_versions); 32 const QuicVersionVector& supported_versions);
35 33
36 virtual ~QuicServer(); 34 virtual ~QuicServer();
37 35
38 // Start listening on the specified address. 36 // Start listening on the specified address.
39 bool Listen(const IPEndPoint& address); 37 bool Listen(const IPEndPoint& address);
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // connections. 135 // connections.
138 uint32 server_initial_flow_control_receive_window_; 136 uint32 server_initial_flow_control_receive_window_;
139 137
140 DISALLOW_COPY_AND_ASSIGN(QuicServer); 138 DISALLOW_COPY_AND_ASSIGN(QuicServer);
141 }; 139 };
142 140
143 } // namespace tools 141 } // namespace tools
144 } // namespace net 142 } // namespace net
145 143
146 #endif // NET_TOOLS_QUIC_QUIC_SERVER_H_ 144 #endif // NET_TOOLS_QUIC_QUIC_SERVER_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_per_connection_packet_writer.cc ('k') | net/tools/quic/quic_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698