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

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

Issue 1581283002: Rename chromium-specific QUIC classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing Created 4 years, 11 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_simple_client.cc ('k') | net/tools/quic/quic_simple_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_QUIC_TOOLS_QUIC_SIMPLE_SERVER_H_ 8 #ifndef NET_QUIC_TOOLS_QUIC_SIMPLE_SERVER_H_
9 #define NET_QUIC_TOOLS_QUIC_SIMPLE_SERVER_H_ 9 #define NET_QUIC_TOOLS_QUIC_SIMPLE_SERVER_H_
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "net/base/io_buffer.h" 13 #include "net/base/io_buffer.h"
14 #include "net/base/ip_endpoint.h" 14 #include "net/base/ip_endpoint.h"
15 #include "net/log/net_log.h" 15 #include "net/log/net_log.h"
16 #include "net/quic/crypto/quic_crypto_server_config.h" 16 #include "net/quic/crypto/quic_crypto_server_config.h"
17 #include "net/quic/quic_chromium_connection_helper.h"
17 #include "net/quic/quic_clock.h" 18 #include "net/quic/quic_clock.h"
18 #include "net/quic/quic_config.h" 19 #include "net/quic/quic_config.h"
19 #include "net/quic/quic_connection_helper.h"
20 20
21 namespace net { 21 namespace net {
22 22
23 class UDPServerSocket; 23 class UDPServerSocket;
24 24
25 namespace tools { 25 namespace tools {
26 26
27 class QuicDispatcher; 27 class QuicDispatcher;
28 28
29 namespace test { 29 namespace test {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // Initialize the internal state of the server. 64 // Initialize the internal state of the server.
65 void Initialize(); 65 void Initialize();
66 66
67 // Accepts data from the framer and demuxes clients to sessions. 67 // Accepts data from the framer and demuxes clients to sessions.
68 scoped_ptr<QuicDispatcher> dispatcher_; 68 scoped_ptr<QuicDispatcher> dispatcher_;
69 69
70 // Used by the helper_ to time alarms. 70 // Used by the helper_ to time alarms.
71 QuicClock clock_; 71 QuicClock clock_;
72 72
73 // Used to manage the message loop. Owned by dispatcher_. 73 // Used to manage the message loop. Owned by dispatcher_.
74 QuicConnectionHelper* helper_; 74 QuicChromiumConnectionHelper* helper_;
75 75
76 // Listening socket. Also used for outbound client communication. 76 // Listening socket. Also used for outbound client communication.
77 scoped_ptr<UDPServerSocket> socket_; 77 scoped_ptr<UDPServerSocket> socket_;
78 78
79 // config_ contains non-crypto parameters that are negotiated in the crypto 79 // config_ contains non-crypto parameters that are negotiated in the crypto
80 // handshake. 80 // handshake.
81 QuicConfig config_; 81 QuicConfig config_;
82 // crypto_config_ contains crypto parameters for the handshake. 82 // crypto_config_ contains crypto parameters for the handshake.
83 QuicCryptoServerConfig crypto_config_; 83 QuicCryptoServerConfig crypto_config_;
84 84
(...skipping 25 matching lines...) Expand all
110 110
111 base::WeakPtrFactory<QuicSimpleServer> weak_factory_; 111 base::WeakPtrFactory<QuicSimpleServer> weak_factory_;
112 112
113 DISALLOW_COPY_AND_ASSIGN(QuicSimpleServer); 113 DISALLOW_COPY_AND_ASSIGN(QuicSimpleServer);
114 }; 114 };
115 115
116 } // namespace tools 116 } // namespace tools
117 } // namespace net 117 } // namespace net
118 118
119 #endif // NET_QUIC_TOOLS_QUIC_SIMPLE_SERVER_H_ 119 #endif // NET_QUIC_TOOLS_QUIC_SIMPLE_SERVER_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_simple_client.cc ('k') | net/tools/quic/quic_simple_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698