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

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

Issue 1411063004: Remove insecure QUIC support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: enough! Created 5 years, 1 month 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"
(...skipping 18 matching lines...) Expand all
29 typedef std::function<QuicServerSession*( 29 typedef std::function<QuicServerSession*(
30 const QuicConfig& config, 30 const QuicConfig& config,
31 QuicConnection* connection, 31 QuicConnection* connection,
32 QuicServerSessionVisitor* visitor, 32 QuicServerSessionVisitor* visitor,
33 const QuicCryptoServerConfig* crypto_config)> SessionCreationFunction; 33 const QuicCryptoServerConfig* crypto_config)> SessionCreationFunction;
34 34
35 typedef std::function<QuicSpdyServerStream*(QuicStreamId id, 35 typedef std::function<QuicSpdyServerStream*(QuicStreamId id,
36 QuicSpdySession* session)> 36 QuicSpdySession* session)>
37 StreamCreationFunction; 37 StreamCreationFunction;
38 38
39 explicit QuicTestServer(); 39 explicit QuicTestServer(ProofSource* proof_source);
40 QuicTestServer(const QuicConfig& config, 40 QuicTestServer(ProofSource* proof_source,
41 const QuicConfig& config,
41 const QuicVersionVector& supported_versions); 42 const QuicVersionVector& supported_versions);
42 43
43 // Create a custom dispatcher which creates custom sessions. 44 // Create a custom dispatcher which creates custom sessions.
44 QuicDispatcher* CreateQuicDispatcher() override; 45 QuicDispatcher* CreateQuicDispatcher() override;
45 46
46 // Sets a custom session creator, for easy custom session logic. 47 // Sets a custom session creator, for easy custom session logic.
47 // This is incompatible with setting a stream creator. 48 // This is incompatible with setting a stream creator.
48 void SetSessionCreator(SessionCreationFunction function); 49 void SetSessionCreator(SessionCreationFunction function);
49 50
50 // Sets a custom stream creator, for easy custom stream logic. 51 // Sets a custom stream creator, for easy custom stream logic.
(...skipping 13 matching lines...) Expand all
64 const QuicCryptoServerConfig* crypto_config); 65 const QuicCryptoServerConfig* crypto_config);
65 }; 66 };
66 67
67 } // namespace test 68 } // namespace test
68 69
69 } // namespace tools 70 } // namespace tools
70 71
71 } // namespace net 72 } // namespace net
72 73
73 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_SERVER_H_ 74 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_SERVER_H_
OLDNEW
« no previous file with comments | « net/tools/quic/test_tools/quic_test_client.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