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

Side by Side Diff: net/tools/quic/test_tools/quic_test_server.h

Issue 1521993006: Rename QuicSpdyServerStream to QuicSimpleServerStream. No behavior change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@109918216
Patch Set: correct NET_TOOLS_QUIC_QUIC_SIMPLE_SERVER_STREAM_H_ Created 5 years 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
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_SERVER_H_ 5 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_SERVER_H_
6 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_SERVER_H_ 6 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_SERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "net/base/ip_endpoint.h" 12 #include "net/base/ip_endpoint.h"
13 #include "net/quic/quic_session.h" 13 #include "net/quic/quic_session.h"
14 #include "net/tools/quic/quic_dispatcher.h" 14 #include "net/tools/quic/quic_dispatcher.h"
15 #include "net/tools/quic/quic_server.h" 15 #include "net/tools/quic/quic_server.h"
16 #include "net/tools/quic/quic_spdy_server_stream.h" 16 #include "net/tools/quic/quic_simple_server_stream.h"
17 17
18 namespace net { 18 namespace net {
19 19
20 namespace tools { 20 namespace tools {
21 21
22 namespace test { 22 namespace test {
23 23
24 // A test server which enables easy creation of custom QuicServerSessions 24 // A test server which enables easy creation of custom QuicServerSessions
25 // 25 //
26 // Eventually this may be extended to allow custom QuicConnections etc. 26 // Eventually this may be extended to allow custom QuicConnections etc.
27 class QuicTestServer : public QuicServer { 27 class QuicTestServer : public QuicServer {
28 public: 28 public:
29 // Factory for creating QuicServerSessions. 29 // Factory for creating QuicServerSessions.
30 class SessionFactory { 30 class SessionFactory {
31 public: 31 public:
32 virtual ~SessionFactory() {} 32 virtual ~SessionFactory() {}
33 33
34 // Returns a new session owned by the caller. 34 // Returns a new session owned by the caller.
35 virtual QuicServerSession* CreateSession( 35 virtual QuicServerSession* CreateSession(
36 const QuicConfig& config, 36 const QuicConfig& config,
37 QuicConnection* connection, 37 QuicConnection* connection,
38 QuicServerSessionVisitor* visitor, 38 QuicServerSessionVisitor* visitor,
39 const QuicCryptoServerConfig* crypto_config) = 0; 39 const QuicCryptoServerConfig* crypto_config) = 0;
40 }; 40 };
41 41
42 // Factory for creating QuicServerStreams. 42 // Factory for creating QuicSimpleServerStreams.
43 class StreamFactory { 43 class StreamFactory {
44 public: 44 public:
45 virtual ~StreamFactory() {} 45 virtual ~StreamFactory() {}
46 46
47 // Returns a new stream owned by the caller. 47 // Returns a new stream owned by the caller.
48 virtual QuicSpdyServerStream* CreateStream(QuicStreamId id, 48 virtual QuicSimpleServerStream* CreateStream(QuicStreamId id,
49 QuicSpdySession* session) = 0; 49 QuicSpdySession* session) = 0;
50 }; 50 };
51 51
52 class CryptoStreamFactory { 52 class CryptoStreamFactory {
53 public: 53 public:
54 virtual ~CryptoStreamFactory() {} 54 virtual ~CryptoStreamFactory() {}
55 55
56 // Returns a new QuicCryptoServerStreamBase owned by the caller 56 // Returns a new QuicCryptoServerStreamBase owned by the caller
57 virtual QuicCryptoServerStreamBase* CreateCryptoStream( 57 virtual QuicCryptoServerStreamBase* CreateCryptoStream(
58 const QuicCryptoServerConfig* crypto_config, 58 const QuicCryptoServerConfig* crypto_config,
59 QuicSpdySession* session) = 0; 59 QuicSpdySession* session) = 0;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 const QuicCryptoServerConfig* crypto_config); 93 const QuicCryptoServerConfig* crypto_config);
94 }; 94 };
95 95
96 } // namespace test 96 } // namespace test
97 97
98 } // namespace tools 98 } // namespace tools
99 99
100 } // namespace net 100 } // namespace net
101 101
102 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_SERVER_H_ 102 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_SERVER_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_spdy_server_stream_test.cc ('k') | net/tools/quic/test_tools/quic_test_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698