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

Unified Diff: chrome/browser/component_updater/ev_whitelist_component_installer.h

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/component_updater/ev_whitelist_component_installer.h
diff --git a/chrome/browser/component_updater/ev_whitelist_component_installer.h b/chrome/browser/component_updater/ev_whitelist_component_installer.h
index be678d64b03e667e9b817301c74633f812d2faeb..8f8440639e2e09958adb67387280d37e3613b677 100644
--- a/chrome/browser/component_updater/ev_whitelist_component_installer.h
+++ b/chrome/browser/component_updater/ev_whitelist_component_installer.h
@@ -11,17 +11,23 @@
#include "base/files/file_path.h"
#include "base/macros.h"
+#include "base/memory/ref_counted.h"
#include "base/values.h"
#include "components/component_updater/default_component_installer.h"
+namespace net {
+class SSLConfigService;
+} // namespace net
+
namespace component_updater {
class ComponentUpdateService;
class EVWhitelistComponentInstallerTraits : public ComponentInstallerTraits {
public:
- EVWhitelistComponentInstallerTraits();
- virtual ~EVWhitelistComponentInstallerTraits() {}
+ EVWhitelistComponentInstallerTraits(
Sorin Jianu 2014/10/01 18:50:02 needs an explicit declarator.
Eran Messeri 2014/10/03 12:00:11 Not anymore since I've reverted to the default c't
+ net::SSLConfigService* ssl_config_service);
+ virtual ~EVWhitelistComponentInstallerTraits();
private:
// The following methods override ComponentInstallerTraits.
@@ -40,12 +46,15 @@ class EVWhitelistComponentInstallerTraits : public ComponentInstallerTraits {
static base::FilePath GetInstalledPath(const base::FilePath& base);
+ scoped_refptr<net::SSLConfigService> ssl_config_service_;
+
DISALLOW_COPY_AND_ASSIGN(EVWhitelistComponentInstallerTraits);
};
// Call once during startup to make the component update service aware of
// the EV whitelist.
-void RegisterEVWhitelistComponent(ComponentUpdateService* cus);
+void RegisterEVWhitelistComponent(ComponentUpdateService* cus,
+ net::SSLConfigService* ssl_config_service);
} // namespace component_updater

Powered by Google App Engine
This is Rietveld 408576698