OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 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_QUIC_QUIC_CRYPTO_CLIENT_STREAM_FACTORY_H_ | 5 #ifndef NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_FACTORY_H_ |
6 #define NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_FACTORY_H_ | 6 #define NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_FACTORY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "net/base/net_export.h" | 10 #include "net/base/net_export.h" |
11 | 11 |
12 namespace net { | 12 namespace net { |
13 | 13 |
14 class QuicClientSession; | 14 class QuicClientSession; |
15 class QuicCryptoClientStream; | 15 class QuicCryptoClientStream; |
16 class QuicSessionKey; | 16 class QuicServerId; |
17 | 17 |
18 // An interface used to instantiate QuicCryptoClientStream objects. Used to | 18 // An interface used to instantiate QuicCryptoClientStream objects. Used to |
19 // facilitate testing code with mock implementations. | 19 // facilitate testing code with mock implementations. |
20 class NET_EXPORT QuicCryptoClientStreamFactory { | 20 class NET_EXPORT QuicCryptoClientStreamFactory { |
21 public: | 21 public: |
22 virtual ~QuicCryptoClientStreamFactory() {} | 22 virtual ~QuicCryptoClientStreamFactory() {} |
23 | 23 |
24 virtual QuicCryptoClientStream* CreateQuicCryptoClientStream( | 24 virtual QuicCryptoClientStream* CreateQuicCryptoClientStream( |
25 const QuicSessionKey& server_key, | 25 const QuicServerId& server_id, |
26 QuicClientSession* session, | 26 QuicClientSession* session, |
27 QuicCryptoClientConfig* crypto_config) = 0; | 27 QuicCryptoClientConfig* crypto_config) = 0; |
28 }; | 28 }; |
29 | 29 |
30 } // namespace net | 30 } // namespace net |
31 | 31 |
32 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_FACTORY_H_ | 32 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_FACTORY_H_ |
OLD | NEW |