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

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

Issue 578553004: Remove the "snionly" concept from the HSTS preload. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ... Created 6 years, 2 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
« no previous file with comments | « net/spdy/spdy_session.cc ('k') | net/ssl/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_SSL_SSL_CONFIG_SERVICE_H_ 5 #ifndef NET_SSL_SSL_CONFIG_SERVICE_H_
6 #define NET_SSL_SSL_CONFIG_SERVICE_H_ 6 #define NET_SSL_SSL_CONFIG_SERVICE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 SSLConfigService(); 44 SSLConfigService();
45 45
46 // May not be thread-safe, should only be called on the IO thread. 46 // May not be thread-safe, should only be called on the IO thread.
47 virtual void GetSSLConfig(SSLConfig* config) = 0; 47 virtual void GetSSLConfig(SSLConfig* config) = 0;
48 48
49 // Sets and gets the current, global CRL set. 49 // Sets and gets the current, global CRL set.
50 static void SetCRLSet(scoped_refptr<CRLSet> crl_set); 50 static void SetCRLSet(scoped_refptr<CRLSet> crl_set);
51 static scoped_refptr<CRLSet> GetCRLSet(); 51 static scoped_refptr<CRLSet> GetCRLSet();
52 52
53 // Is SNI available in this configuration?
54 static bool IsSNIAvailable(SSLConfigService* service);
55
56 // Add an observer of this service. 53 // Add an observer of this service.
57 void AddObserver(Observer* observer); 54 void AddObserver(Observer* observer);
58 55
59 // Remove an observer of this service. 56 // Remove an observer of this service.
60 void RemoveObserver(Observer* observer); 57 void RemoveObserver(Observer* observer);
61 58
62 // Calls the OnSSLConfigChanged method of registered observers. Should only be 59 // Calls the OnSSLConfigChanged method of registered observers. Should only be
63 // called on the IO thread. 60 // called on the IO thread.
64 void NotifySSLConfigChange(); 61 void NotifySSLConfigChange();
65 62
66 protected: 63 protected:
67 friend class base::RefCountedThreadSafe<SSLConfigService>; 64 friend class base::RefCountedThreadSafe<SSLConfigService>;
68 65
69 virtual ~SSLConfigService(); 66 virtual ~SSLConfigService();
70 67
71 // Process before/after config update. 68 // Process before/after config update.
72 void ProcessConfigUpdate(const SSLConfig& orig_config, 69 void ProcessConfigUpdate(const SSLConfig& orig_config,
73 const SSLConfig& new_config); 70 const SSLConfig& new_config);
74 71
75 private: 72 private:
76 ObserverList<Observer> observer_list_; 73 ObserverList<Observer> observer_list_;
77 }; 74 };
78 75
79 } // namespace net 76 } // namespace net
80 77
81 #endif // NET_SSL_SSL_CONFIG_SERVICE_H_ 78 #endif // NET_SSL_SSL_CONFIG_SERVICE_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_session.cc ('k') | net/ssl/ssl_config_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698