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

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

Issue 6930040: Refactor to address URLRequestContext dependency added in (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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
OLDNEW
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 #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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 // Disables False Start in SSL connections. 140 // Disables False Start in SSL connections.
141 static void DisableFalseStart(); 141 static void DisableFalseStart();
142 // True if we use False Start for SSL and TLS. 142 // True if we use False Start for SSL and TLS.
143 static bool false_start_enabled(); 143 static bool false_start_enabled();
144 144
145 // Enables DNS side checks for certificates. 145 // Enables DNS side checks for certificates.
146 static void EnableDNSCertProvenanceChecking(); 146 static void EnableDNSCertProvenanceChecking();
147 static bool dns_cert_provenance_checking_enabled(); 147 static bool dns_cert_provenance_checking_enabled();
148 148
149 // Is SNI available in this configuration?
150 static bool IsSNIAvailable(SSLConfigService* service);
151
149 // Add an observer of this service. 152 // Add an observer of this service.
150 void AddObserver(Observer* observer); 153 void AddObserver(Observer* observer);
151 154
152 // Remove an observer of this service. 155 // Remove an observer of this service.
153 void RemoveObserver(Observer* observer); 156 void RemoveObserver(Observer* observer);
154 157
155 protected: 158 protected:
156 friend class base::RefCountedThreadSafe<SSLConfigService>; 159 friend class base::RefCountedThreadSafe<SSLConfigService>;
157 160
158 virtual ~SSLConfigService(); 161 virtual ~SSLConfigService();
159 162
160 // SetFlags sets the values of several flags based on global configuration. 163 // SetFlags sets the values of several flags based on global configuration.
161 static void SetSSLConfigFlags(SSLConfig* ssl_config); 164 static void SetSSLConfigFlags(SSLConfig* ssl_config);
162 165
163 // Process before/after config update. 166 // Process before/after config update.
164 void ProcessConfigUpdate(const SSLConfig& orig_config, 167 void ProcessConfigUpdate(const SSLConfig& orig_config,
165 const SSLConfig& new_config); 168 const SSLConfig& new_config);
166 169
167 private: 170 private:
168 ObserverList<Observer> observer_list_; 171 ObserverList<Observer> observer_list_;
169 }; 172 };
170 173
171 } // namespace net 174 } // namespace net
172 175
173 #endif // NET_BASE_SSL_CONFIG_SERVICE_H_ 176 #endif // NET_BASE_SSL_CONFIG_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698