OLD | NEW |
| (Empty) |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_FACTORY_H_ | |
6 #define NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_FACTORY_H_ | |
7 | |
8 #include <memory> | |
9 #include <string> | |
10 | |
11 #include "net/base/net_export.h" | |
12 #include "net/quic/quic_server_id.h" | |
13 | |
14 namespace net { | |
15 | |
16 class ProofVerifyContext; | |
17 class QuicChromiumClientSession; | |
18 class QuicCryptoClientConfig; | |
19 class QuicCryptoClientStream; | |
20 | |
21 // An interface used to instantiate QuicCryptoClientStream objects. Used to | |
22 // facilitate testing code with mock implementations. | |
23 class NET_EXPORT QuicCryptoClientStreamFactory { | |
24 public: | |
25 virtual ~QuicCryptoClientStreamFactory() {} | |
26 | |
27 virtual QuicCryptoClientStream* CreateQuicCryptoClientStream( | |
28 const QuicServerId& server_id, | |
29 QuicChromiumClientSession* session, | |
30 std::unique_ptr<ProofVerifyContext> proof_verify_context, | |
31 QuicCryptoClientConfig* crypto_config) = 0; | |
32 | |
33 static QuicCryptoClientStreamFactory* GetDefaultFactory(); | |
34 }; | |
35 | |
36 } // namespace net | |
37 | |
38 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_FACTORY_H_ | |
OLD | NEW |