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

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

Issue 10753022: TLS channel id field trial. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/browser/chrome_browser_main.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 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 static void EnableCachedInfo(); 174 static void EnableCachedInfo();
175 static bool cached_info_enabled(); 175 static bool cached_info_enabled();
176 176
177 // Gets the default minimum protocol version. 177 // Gets the default minimum protocol version.
178 static uint16 default_version_min(); 178 static uint16 default_version_min();
179 179
180 // Sets and gets the default maximum protocol version. 180 // Sets and gets the default maximum protocol version.
181 static void SetDefaultVersionMax(uint16 version_max); 181 static void SetDefaultVersionMax(uint16 version_max);
182 static uint16 default_version_max(); 182 static uint16 default_version_max();
183 183
184 // Force channel ID support to be enabled.
185 static void EnableChannelIDTrial();
186
184 // Is SNI available in this configuration? 187 // Is SNI available in this configuration?
185 static bool IsSNIAvailable(SSLConfigService* service); 188 static bool IsSNIAvailable(SSLConfigService* service);
186 189
187 // Add an observer of this service. 190 // Add an observer of this service.
188 void AddObserver(Observer* observer); 191 void AddObserver(Observer* observer);
189 192
190 // Remove an observer of this service. 193 // Remove an observer of this service.
191 void RemoveObserver(Observer* observer); 194 void RemoveObserver(Observer* observer);
192 195
193 protected: 196 protected:
194 friend class base::RefCountedThreadSafe<SSLConfigService>; 197 friend class base::RefCountedThreadSafe<SSLConfigService>;
195 198
196 virtual ~SSLConfigService(); 199 virtual ~SSLConfigService();
197 200
198 // SetFlags sets the values of several flags based on global configuration. 201 // SetFlags sets the values of several flags based on global configuration.
199 static void SetSSLConfigFlags(SSLConfig* ssl_config); 202 static void SetSSLConfigFlags(SSLConfig* ssl_config);
200 203
201 // Process before/after config update. 204 // Process before/after config update.
202 void ProcessConfigUpdate(const SSLConfig& orig_config, 205 void ProcessConfigUpdate(const SSLConfig& orig_config,
203 const SSLConfig& new_config); 206 const SSLConfig& new_config);
204 207
205 private: 208 private:
206 ObserverList<Observer> observer_list_; 209 ObserverList<Observer> observer_list_;
207 }; 210 };
208 211
209 } // namespace net 212 } // namespace net
210 213
211 #endif // NET_BASE_SSL_CONFIG_SERVICE_H_ 214 #endif // NET_BASE_SSL_CONFIG_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | net/base/ssl_config_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698