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 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 static void EnableCachedInfo(); | 173 static void EnableCachedInfo(); |
174 static bool cached_info_enabled(); | 174 static bool cached_info_enabled(); |
175 | 175 |
176 // Gets the default minimum protocol version. | 176 // Gets the default minimum protocol version. |
177 static uint16 default_version_min(); | 177 static uint16 default_version_min(); |
178 | 178 |
179 // Sets and gets the default maximum protocol version. | 179 // Sets and gets the default maximum protocol version. |
180 static void SetDefaultVersionMax(uint16 version_max); | 180 static void SetDefaultVersionMax(uint16 version_max); |
181 static uint16 default_version_max(); | 181 static uint16 default_version_max(); |
182 | 182 |
183 // Force channel ID support to be enabled. | |
184 static void EnableChannelIDTrial(); | |
185 | |
186 // Is SNI available in this configuration? | 183 // Is SNI available in this configuration? |
187 static bool IsSNIAvailable(SSLConfigService* service); | 184 static bool IsSNIAvailable(SSLConfigService* service); |
188 | 185 |
189 // Add an observer of this service. | 186 // Add an observer of this service. |
190 void AddObserver(Observer* observer); | 187 void AddObserver(Observer* observer); |
191 | 188 |
192 // Remove an observer of this service. | 189 // Remove an observer of this service. |
193 void RemoveObserver(Observer* observer); | 190 void RemoveObserver(Observer* observer); |
194 | 191 |
195 protected: | 192 protected: |
196 friend class base::RefCountedThreadSafe<SSLConfigService>; | 193 friend class base::RefCountedThreadSafe<SSLConfigService>; |
197 | 194 |
198 virtual ~SSLConfigService(); | 195 virtual ~SSLConfigService(); |
199 | 196 |
200 // SetFlags sets the values of several flags based on global configuration. | 197 // SetFlags sets the values of several flags based on global configuration. |
201 static void SetSSLConfigFlags(SSLConfig* ssl_config); | 198 static void SetSSLConfigFlags(SSLConfig* ssl_config); |
202 | 199 |
203 // Process before/after config update. | 200 // Process before/after config update. |
204 void ProcessConfigUpdate(const SSLConfig& orig_config, | 201 void ProcessConfigUpdate(const SSLConfig& orig_config, |
205 const SSLConfig& new_config); | 202 const SSLConfig& new_config); |
206 | 203 |
207 private: | 204 private: |
208 ObserverList<Observer> observer_list_; | 205 ObserverList<Observer> observer_list_; |
209 }; | 206 }; |
210 | 207 |
211 } // namespace net | 208 } // namespace net |
212 | 209 |
213 #endif // NET_BASE_SSL_CONFIG_SERVICE_H_ | 210 #endif // NET_BASE_SSL_CONFIG_SERVICE_H_ |
OLD | NEW |