mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 08:16:09 +03:00
30 lines
775 B
C++
30 lines
775 B
C++
// Copyright 2019 The Chromium Authors
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef NET_SSL_TEST_SSL_CONFIG_SERVICE_H_
|
|
#define NET_SSL_TEST_SSL_CONFIG_SERVICE_H_
|
|
|
|
#include "net/ssl/ssl_config_service.h"
|
|
|
|
namespace net {
|
|
|
|
class TestSSLConfigService : public SSLConfigService {
|
|
public:
|
|
explicit TestSSLConfigService(const SSLContextConfig& config);
|
|
~TestSSLConfigService() override;
|
|
|
|
void UpdateSSLConfigAndNotify(const SSLContextConfig& config);
|
|
|
|
SSLContextConfig GetSSLContextConfig() override;
|
|
bool CanShareConnectionWithClientCerts(
|
|
const std::string& hostname) const override;
|
|
|
|
private:
|
|
SSLContextConfig config_;
|
|
};
|
|
|
|
} // namespace net
|
|
|
|
#endif // NET_SSL_TEST_SSL_CONFIG_SERVICE_H_
|