Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / net / ssl / ssl_config_service_defaults.h
blobde867da13acc3c81474e8dd53e86c2732aa5e823
1 // Copyright (c) 2011 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_SSL_SSL_CONFIG_SERVICE_DEFAULTS_H_
6 #define NET_SSL_SSL_CONFIG_SERVICE_DEFAULTS_H_
8 #include "net/base/net_export.h"
9 #include "net/ssl/ssl_config_service.h"
11 namespace net {
13 // This SSLConfigService always returns the default SSLConfig settings. It is
14 // mainly useful for unittests, or for platforms that do not have a native
15 // implementation of SSLConfigService yet.
16 class NET_EXPORT SSLConfigServiceDefaults : public SSLConfigService {
17 public:
18 SSLConfigServiceDefaults();
20 // Store default SSL config settings in |config|.
21 void GetSSLConfig(SSLConfig* config) override;
23 private:
24 ~SSLConfigServiceDefaults() override;
26 // Default value of prefs.
27 const SSLConfig default_config_;
29 DISALLOW_COPY_AND_ASSIGN(SSLConfigServiceDefaults);
32 } // namespace net
34 #endif // NET_SSL_SSL_CONFIG_SERVICE_DEFAULTS_H_