mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 14:26:09 +03:00
38 lines
1.1 KiB
C++
38 lines
1.1 KiB
C++
// Copyright (c) 2011 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_SSL_SSL_CONFIG_SERVICE_DEFAULTS_H_
|
|
#define NET_SSL_SSL_CONFIG_SERVICE_DEFAULTS_H_
|
|
|
|
#include "base/macros.h"
|
|
#include "net/base/net_export.h"
|
|
#include "net/ssl/ssl_config_service.h"
|
|
|
|
namespace net {
|
|
|
|
// This SSLConfigService always returns the default SSLConfig settings. It is
|
|
// mainly useful for unittests, or for platforms that do not have a native
|
|
// implementation of SSLConfigService yet.
|
|
class NET_EXPORT SSLConfigServiceDefaults : public SSLConfigService {
|
|
public:
|
|
SSLConfigServiceDefaults();
|
|
~SSLConfigServiceDefaults() override;
|
|
|
|
// Store default SSL config settings in |config|.
|
|
void GetSSLConfig(SSLConfig* config) override;
|
|
|
|
bool CanShareConnectionWithClientCerts(
|
|
const std::string& hostname) const override;
|
|
|
|
private:
|
|
// Default value of prefs.
|
|
const SSLConfig default_config_;
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(SSLConfigServiceDefaults);
|
|
};
|
|
|
|
} // namespace net
|
|
|
|
#endif // NET_SSL_SSL_CONFIG_SERVICE_DEFAULTS_H_
|