| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_SSL_SSL_CONFIG_SERVICE_DEFAULTS_H_ | 5 #ifndef NET_SSL_SSL_CONFIG_SERVICE_DEFAULTS_H_ |
| 6 #define NET_SSL_SSL_CONFIG_SERVICE_DEFAULTS_H_ | 6 #define NET_SSL_SSL_CONFIG_SERVICE_DEFAULTS_H_ |
| 7 | 7 |
| 8 #include "net/base/net_export.h" | 8 #include "net/base/net_export.h" |
| 9 #include "net/ssl/ssl_config_service.h" | 9 #include "net/ssl/ssl_config_service.h" |
| 10 | 10 |
| 11 namespace net { | 11 namespace net { |
| 12 | 12 |
| 13 // This SSLConfigService always returns the default SSLConfig settings. It is | 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 | 14 // mainly useful for unittests, or for platforms that do not have a native |
| 15 // implementation of SSLConfigService yet. | 15 // implementation of SSLConfigService yet. |
| 16 class NET_EXPORT SSLConfigServiceDefaults : public SSLConfigService { | 16 class NET_EXPORT SSLConfigServiceDefaults : public SSLConfigService { |
| 17 public: | 17 public: |
| 18 SSLConfigServiceDefaults(); | 18 SSLConfigServiceDefaults(); |
| 19 | 19 |
| 20 // Store default SSL config settings in |config|. | 20 // Store default SSL config settings in |config|. |
| 21 virtual void GetSSLConfig(SSLConfig* config) OVERRIDE; | 21 virtual void GetSSLConfig(SSLConfig* config) override; |
| 22 | 22 |
| 23 private: | 23 private: |
| 24 virtual ~SSLConfigServiceDefaults(); | 24 virtual ~SSLConfigServiceDefaults(); |
| 25 | 25 |
| 26 // Default value of prefs. | 26 // Default value of prefs. |
| 27 const SSLConfig default_config_; | 27 const SSLConfig default_config_; |
| 28 | 28 |
| 29 DISALLOW_COPY_AND_ASSIGN(SSLConfigServiceDefaults); | 29 DISALLOW_COPY_AND_ASSIGN(SSLConfigServiceDefaults); |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 } // namespace net | 32 } // namespace net |
| 33 | 33 |
| 34 #endif // NET_SSL_SSL_CONFIG_SERVICE_DEFAULTS_H_ | 34 #endif // NET_SSL_SSL_CONFIG_SERVICE_DEFAULTS_H_ |
| OLD | NEW |