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

Unified Diff: chrome/browser/net/ssl_config_service_manager_pref.cc

Issue 547603002: Certificate Transparency: Code for unpacking EV cert hashes whitelist (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Avoiding globals in favour of passing the SSLConfigService around Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/net/ssl_config_service_manager_pref.cc
diff --git a/chrome/browser/net/ssl_config_service_manager_pref.cc b/chrome/browser/net/ssl_config_service_manager_pref.cc
index 4771d88edd460e8ad3c81c90b8ae501a03f93588..a9651f64d9cd7b547ad8e43db09d330297c21840 100644
--- a/chrome/browser/net/ssl_config_service_manager_pref.cc
+++ b/chrome/browser/net/ssl_config_service_manager_pref.cc
@@ -18,6 +18,7 @@
#include "chrome/common/pref_names.h"
#include "components/content_settings/core/common/content_settings.h"
#include "content/public/browser/browser_thread.h"
+#include "net/cert/ct_ev_whitelist.h"
#include "net/ssl/ssl_cipher_suite_names.h"
#include "net/ssl/ssl_config_service.h"
@@ -111,6 +112,10 @@ class SSLConfigServicePref : public net::SSLConfigService {
// Store SSL config settings in |config|. Must only be called from IO thread.
virtual void GetSSLConfig(net::SSLConfig* config) OVERRIDE;
+ // Sets and gets the current, global EV certificates whitelist
+ virtual void SetEVCertsWhitelist(
+ scoped_refptr<net::ct::EVCertsWhitelist> ev_whitelist) OVERRIDE;
+
private:
// Allow the pref watcher to update our internal state.
friend class SSLConfigServiceManagerPref;
@@ -138,6 +143,11 @@ void SSLConfigServicePref::SetNewSSLConfig(
ProcessConfigUpdate(orig_config, new_config);
}
+void SSLConfigServicePref::SetEVCertsWhitelist(
+ scoped_refptr<net::ct::EVCertsWhitelist> ev_whitelist) {
+ cached_config_.ev_certs_whitelist = ev_whitelist;
+}
+
////////////////////////////////////////////////////////////////////////////////
// SSLConfigServiceManagerPref

Powered by Google App Engine
This is Rietveld 408576698