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

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

Issue 2937563002: Remove the EV Certs Whitelist (Closed)
Patch Set: Update comment Created 3 years, 6 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/chromium/spdy_test_util_common.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"
11 #include "base/observer_list.h" 11 #include "base/observer_list.h"
12 #include "net/base/net_export.h" 12 #include "net/base/net_export.h"
13 #include "net/cert/crl_set.h" 13 #include "net/cert/crl_set.h"
14 #include "net/cert/ct_ev_whitelist.h"
15 #include "net/ssl/ssl_config.h" 14 #include "net/ssl/ssl_config.h"
16 15
17 namespace net { 16 namespace net {
18 17
19 // The interface for retrieving the SSL configuration. This interface 18 // The interface for retrieving the SSL configuration. This interface
20 // does not cover setting the SSL configuration, as on some systems, the 19 // does not cover setting the SSL configuration, as on some systems, the
21 // SSLConfigService objects may not have direct access to the configuration, or 20 // SSLConfigService objects may not have direct access to the configuration, or
22 // live longer than the configuration preferences. 21 // live longer than the configuration preferences.
23 class NET_EXPORT SSLConfigService 22 class NET_EXPORT SSLConfigService
24 : public base::RefCountedThreadSafe<SSLConfigService> { 23 : public base::RefCountedThreadSafe<SSLConfigService> {
(...skipping 19 matching lines...) Expand all
44 43
45 SSLConfigService(); 44 SSLConfigService();
46 45
47 // 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.
48 virtual void GetSSLConfig(SSLConfig* config) = 0; 47 virtual void GetSSLConfig(SSLConfig* config) = 0;
49 48
50 // Sets and gets the current, global CRL set. 49 // Sets and gets the current, global CRL set.
51 static void SetCRLSet(scoped_refptr<CRLSet> crl_set); 50 static void SetCRLSet(scoped_refptr<CRLSet> crl_set);
52 static scoped_refptr<CRLSet> GetCRLSet(); 51 static scoped_refptr<CRLSet> GetCRLSet();
53 52
54 // Sets and gets the current, global EV certificates whitelist
55 static void SetEVCertsWhitelist(
56 scoped_refptr<ct::EVCertsWhitelist> ev_whitelist);
57 static scoped_refptr<ct::EVCertsWhitelist> GetEVCertsWhitelist();
58
59 // Add an observer of this service. 53 // Add an observer of this service.
60 void AddObserver(Observer* observer); 54 void AddObserver(Observer* observer);
61 55
62 // Remove an observer of this service. 56 // Remove an observer of this service.
63 void RemoveObserver(Observer* observer); 57 void RemoveObserver(Observer* observer);
64 58
65 // Calls the OnSSLConfigChanged method of registered observers. Should only be 59 // Calls the OnSSLConfigChanged method of registered observers. Should only be
66 // called on the IO thread. 60 // called on the IO thread.
67 void NotifySSLConfigChange(); 61 void NotifySSLConfigChange();
68 62
69 protected: 63 protected:
70 friend class base::RefCountedThreadSafe<SSLConfigService>; 64 friend class base::RefCountedThreadSafe<SSLConfigService>;
71 65
72 virtual ~SSLConfigService(); 66 virtual ~SSLConfigService();
73 67
74 // Process before/after config update. 68 // Process before/after config update.
75 void ProcessConfigUpdate(const SSLConfig& orig_config, 69 void ProcessConfigUpdate(const SSLConfig& orig_config,
76 const SSLConfig& new_config); 70 const SSLConfig& new_config);
77 71
78 private: 72 private:
79 base::ObserverList<Observer> observer_list_; 73 base::ObserverList<Observer> observer_list_;
80 }; 74 };
81 75
82 } // namespace net 76 } // namespace net
83 77
84 #endif // NET_SSL_SSL_CONFIG_SERVICE_H_ 78 #endif // NET_SSL_SSL_CONFIG_SERVICE_H_
OLDNEW
« no previous file with comments | « net/spdy/chromium/spdy_test_util_common.cc ('k') | net/ssl/ssl_config_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698