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

Unified Diff: chrome/browser/net/crl_set_fetcher.h

Issue 391783003: Enabling CRLSet for ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Not Registering for Users without a username_hash Created 6 years, 5 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/crl_set_fetcher.h
diff --git a/chrome/browser/net/crl_set_fetcher.h b/chrome/browser/net/crl_set_fetcher.h
index c7536cc7ca27cdb3d9cc943d3c6e89ec0629200c..cdd20d770cd1cc004ad1f45f6940620f4399dc3d 100644
--- a/chrome/browser/net/crl_set_fetcher.h
+++ b/chrome/browser/net/crl_set_fetcher.h
@@ -8,6 +8,7 @@
#include <string>
#include "base/compiler_specific.h"
+#include "base/files/file_path.h"
#include "base/memory/ref_counted.h"
#include "chrome/browser/component_updater/component_updater_service.h"
@@ -27,6 +28,9 @@ class CRLSetFetcher : public component_updater::ComponentInstaller,
void StartInitialLoad(component_updater::ComponentUpdateService* cus);
+ void StartInitialLoadWithHash(component_updater::ComponentUpdateService* cus,
+ const std::string& user_id_hash);
Ryan Sleevi 2014/07/16 19:39:28 This seems like a very ChromeOS-specific concept,
+
// DeleteFromDisk asynchronously delete the CRLSet file.
void DeleteFromDisk();
@@ -44,7 +48,14 @@ class CRLSetFetcher : public component_updater::ComponentInstaller,
// GetCRLSetbase::FilePath gets the path of the CRL set file in the user data
// dir.
- bool GetCRLSetFilePath(base::FilePath* path) const;
+ base::FilePath GetCRLSetFilePath() const;
+
+ // Set the path of the CRL set file in the user data dir.
Jorge Lucangeli Obes 2014/07/16 16:36:34 "Sets", comments are usually not written in impera
+ // Optional |user_id_hash| that is used by ChromeOS.
Jorge Lucangeli Obes 2014/07/16 16:36:34 "Chrome OS" with a space.
+ bool SetCRLSetFilePath(const std::string* user_id_hash);
+
+ // Posts DoInitialLoadFromDisk to the FILE Thread.
+ void PostInitialLoad(component_updater::ComponentUpdateService* cus);
// DoInitialLoadFromDisk runs on the FILE thread and attempts to load a CRL
// set from the user-data dir. It then registers this object as a component
@@ -69,6 +80,9 @@ class CRLSetFetcher : public component_updater::ComponentInstaller,
component_updater::ComponentUpdateService* cus_;
+ // Path where CRL file is stored.
+ base::FilePath crl_path_;
+
// We keep a pointer to the current CRLSet for use on the FILE thread when
// applying delta updates.
scoped_refptr<net::CRLSet> crl_set_;

Powered by Google App Engine
This is Rietveld 408576698