Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Side by Side Diff: net/base/ssl_config_service.h

Issue 10910240: Enable TLS channeld id by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: split out the extraneous fixes to http://codereview.chromium.org/10909245/ Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | net/base/ssl_config_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 static void EnableCachedInfo(); 176 static void EnableCachedInfo();
177 static bool cached_info_enabled(); 177 static bool cached_info_enabled();
178 178
179 // Gets the default minimum protocol version. 179 // Gets the default minimum protocol version.
180 static uint16 default_version_min(); 180 static uint16 default_version_min();
181 181
182 // Sets and gets the default maximum protocol version. 182 // Sets and gets the default maximum protocol version.
183 static void SetDefaultVersionMax(uint16 version_max); 183 static void SetDefaultVersionMax(uint16 version_max);
184 static uint16 default_version_max(); 184 static uint16 default_version_max();
185 185
186 // Force channel ID support to be enabled.
187 static void EnableChannelIDTrial();
188
189 // Is SNI available in this configuration? 186 // Is SNI available in this configuration?
190 static bool IsSNIAvailable(SSLConfigService* service); 187 static bool IsSNIAvailable(SSLConfigService* service);
191 188
192 // Add an observer of this service. 189 // Add an observer of this service.
193 void AddObserver(Observer* observer); 190 void AddObserver(Observer* observer);
194 191
195 // Remove an observer of this service. 192 // Remove an observer of this service.
196 void RemoveObserver(Observer* observer); 193 void RemoveObserver(Observer* observer);
197 194
198 protected: 195 protected:
199 friend class base::RefCountedThreadSafe<SSLConfigService>; 196 friend class base::RefCountedThreadSafe<SSLConfigService>;
200 197
201 virtual ~SSLConfigService(); 198 virtual ~SSLConfigService();
202 199
203 // SetFlags sets the values of several flags based on global configuration. 200 // SetFlags sets the values of several flags based on global configuration.
204 static void SetSSLConfigFlags(SSLConfig* ssl_config); 201 static void SetSSLConfigFlags(SSLConfig* ssl_config);
205 202
206 // Process before/after config update. 203 // Process before/after config update.
207 void ProcessConfigUpdate(const SSLConfig& orig_config, 204 void ProcessConfigUpdate(const SSLConfig& orig_config,
208 const SSLConfig& new_config); 205 const SSLConfig& new_config);
209 206
210 private: 207 private:
211 ObserverList<Observer> observer_list_; 208 ObserverList<Observer> observer_list_;
212 }; 209 };
213 210
214 } // namespace net 211 } // namespace net
215 212
216 #endif // NET_BASE_SSL_CONFIG_SERVICE_H_ 213 #endif // NET_BASE_SSL_CONFIG_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | net/base/ssl_config_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698