| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BASE_SSL_CONFIG_SERVICE_H_ | 5 #ifndef NET_BASE_SSL_CONFIG_SERVICE_H_ |
| 6 #define NET_BASE_SSL_CONFIG_SERVICE_H_ | 6 #define NET_BASE_SSL_CONFIG_SERVICE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 | 138 |
| 139 protected: | 139 protected: |
| 140 virtual ~Observer() {} | 140 virtual ~Observer() {} |
| 141 }; | 141 }; |
| 142 | 142 |
| 143 SSLConfigService(); | 143 SSLConfigService(); |
| 144 | 144 |
| 145 // May not be thread-safe, should only be called on the IO thread. | 145 // May not be thread-safe, should only be called on the IO thread. |
| 146 virtual void GetSSLConfig(SSLConfig* config) = 0; | 146 virtual void GetSSLConfig(SSLConfig* config) = 0; |
| 147 | 147 |
| 148 // Returns true if the given hostname is known to be incompatible with TLS | |
| 149 // False Start. | |
| 150 static bool IsKnownFalseStartIncompatibleServer(const std::string& hostname); | |
| 151 | |
| 152 // Sets and gets the current, global CRL set. | 148 // Sets and gets the current, global CRL set. |
| 153 static void SetCRLSet(scoped_refptr<CRLSet> crl_set); | 149 static void SetCRLSet(scoped_refptr<CRLSet> crl_set); |
| 154 static scoped_refptr<CRLSet> GetCRLSet(); | 150 static scoped_refptr<CRLSet> GetCRLSet(); |
| 155 | 151 |
| 156 // Enables the TLS cached info extension, which allows the server to send | 152 // Enables the TLS cached info extension, which allows the server to send |
| 157 // just a digest of its certificate chain. | 153 // just a digest of its certificate chain. |
| 158 static void EnableCachedInfo(); | 154 static void EnableCachedInfo(); |
| 159 static bool cached_info_enabled(); | 155 static bool cached_info_enabled(); |
| 160 | 156 |
| 161 // Is SNI available in this configuration? | 157 // Is SNI available in this configuration? |
| (...skipping 17 matching lines...) Expand all Loading... |
| 179 void ProcessConfigUpdate(const SSLConfig& orig_config, | 175 void ProcessConfigUpdate(const SSLConfig& orig_config, |
| 180 const SSLConfig& new_config); | 176 const SSLConfig& new_config); |
| 181 | 177 |
| 182 private: | 178 private: |
| 183 ObserverList<Observer> observer_list_; | 179 ObserverList<Observer> observer_list_; |
| 184 }; | 180 }; |
| 185 | 181 |
| 186 } // namespace net | 182 } // namespace net |
| 187 | 183 |
| 188 #endif // NET_BASE_SSL_CONFIG_SERVICE_H_ | 184 #endif // NET_BASE_SSL_CONFIG_SERVICE_H_ |
| OLD | NEW |