Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / net / quic / quic_crypto_client_stream_factory.h
blob6c9194e5719a1d75e2d7fd52f7d0b071f9c8b555
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.
5 #ifndef NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_FACTORY_H_
6 #define NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_FACTORY_H_
8 #include <string>
10 #include "net/base/net_export.h"
12 namespace net {
14 class QuicChromiumClientSession;
15 class QuicCryptoClientStream;
16 class QuicServerId;
18 // An interface used to instantiate QuicCryptoClientStream objects. Used to
19 // facilitate testing code with mock implementations.
20 class NET_EXPORT QuicCryptoClientStreamFactory {
21 public:
22 virtual ~QuicCryptoClientStreamFactory() {}
24 virtual QuicCryptoClientStream* CreateQuicCryptoClientStream(
25 const QuicServerId& server_id,
26 QuicChromiumClientSession* session,
27 QuicCryptoClientConfig* crypto_config) = 0;
30 } // namespace net
32 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_FACTORY_H_