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 #include "net/base/ssl_config_service.h" | 5 #include "net/base/ssl_config_service.h" |
6 | 6 |
7 #include "net/base/ssl_config_service_defaults.h" | 7 #include "net/base/ssl_config_service_defaults.h" |
8 #include "net/base/ssl_false_start_blacklist.h" | 8 #include "net/base/ssl_false_start_blacklist.h" |
9 | 9 |
10 namespace net { | 10 namespace net { |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 108 |
109 void SSLConfigService::ProcessConfigUpdate(const SSLConfig& orig_config, | 109 void SSLConfigService::ProcessConfigUpdate(const SSLConfig& orig_config, |
110 const SSLConfig& new_config) { | 110 const SSLConfig& new_config) { |
111 if (orig_config.rev_checking_enabled != new_config.rev_checking_enabled || | 111 if (orig_config.rev_checking_enabled != new_config.rev_checking_enabled || |
112 orig_config.ssl3_enabled != new_config.ssl3_enabled || | 112 orig_config.ssl3_enabled != new_config.ssl3_enabled || |
113 orig_config.tls1_enabled != new_config.tls1_enabled) { | 113 orig_config.tls1_enabled != new_config.tls1_enabled) { |
114 FOR_EACH_OBSERVER(Observer, observer_list_, OnSSLConfigChanged()); | 114 FOR_EACH_OBSERVER(Observer, observer_list_, OnSSLConfigChanged()); |
115 } | 115 } |
116 } | 116 } |
117 | 117 |
| 118 // static |
| 119 bool SSLConfigService::IsSNIAvailable(SSLConfigService* service) { |
| 120 if (!service) |
| 121 return false; |
| 122 |
| 123 SSLConfig ssl_config; |
| 124 service->GetSSLConfig(&ssl_config); |
| 125 return ssl_config.tls1_enabled; |
| 126 } |
| 127 |
118 } // namespace net | 128 } // namespace net |
OLD | NEW |