mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 08:16:09 +03:00
45 lines
1.3 KiB
C
45 lines
1.3 KiB
C
|
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
||
|
// Use of this source code is governed by a BSD-style license that can be
|
||
|
// found in the LICENSE file.
|
||
|
|
||
|
#ifndef NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_FACTORY_H_
|
||
|
#define NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_FACTORY_H_
|
||
|
|
||
|
#include <memory>
|
||
|
#include <string>
|
||
|
|
||
|
#include "net/base/net_export.h"
|
||
|
#include "net/third_party/quic/core/quic_server_id.h"
|
||
|
|
||
|
namespace quic {
|
||
|
class ProofVerifyContext;
|
||
|
} // namespace quic
|
||
|
namespace net {
|
||
|
class QuicChromiumClientSession;
|
||
|
} // namespace net
|
||
|
namespace quic {
|
||
|
class QuicCryptoClientConfig;
|
||
|
|
||
|
class QuicCryptoClientStream;
|
||
|
} // namespace quic
|
||
|
namespace net {
|
||
|
|
||
|
// An interface used to instantiate quic::QuicCryptoClientStream objects. Used
|
||
|
// to facilitate testing code with mock implementations.
|
||
|
class NET_EXPORT QuicCryptoClientStreamFactory {
|
||
|
public:
|
||
|
virtual ~QuicCryptoClientStreamFactory() {}
|
||
|
|
||
|
virtual quic::QuicCryptoClientStream* CreateQuicCryptoClientStream(
|
||
|
const quic::QuicServerId& server_id,
|
||
|
QuicChromiumClientSession* session,
|
||
|
std::unique_ptr<quic::ProofVerifyContext> proof_verify_context,
|
||
|
quic::QuicCryptoClientConfig* crypto_config) = 0;
|
||
|
|
||
|
static QuicCryptoClientStreamFactory* GetDefaultFactory();
|
||
|
};
|
||
|
|
||
|
} // namespace net
|
||
|
|
||
|
#endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_FACTORY_H_
|