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

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: Added checks for valid crl object 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..947f5d5ba5c4deb85b300cfeca56e3df645d41de 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"
@@ -25,10 +26,11 @@ class CRLSetFetcher : public component_updater::ComponentInstaller,
public:
CRLSetFetcher();
- void StartInitialLoad(component_updater::ComponentUpdateService* cus);
+ void StartInitialLoad(component_updater::ComponentUpdateService* cus,
+ const base::FilePath& path);
// DeleteFromDisk asynchronously delete the CRLSet file.
- void DeleteFromDisk();
+ void DeleteFromDisk(const base::FilePath& path);
// ComponentInstaller interface
virtual void OnUpdateError(int error) OVERRIDE;
@@ -44,7 +46,11 @@ 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;
+
+ // Sets the path of the CRL set file in the user data dir.
+ // Optional |user_id_hash| that is used by Chrome OS.
leecam 2014/07/18 18:38:44 Oops, stray comment...will remove!
+ void SetCRLSetFilePath(const base::FilePath& path);
// 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 +75,9 @@ class CRLSetFetcher : public component_updater::ComponentInstaller,
component_updater::ComponentUpdateService* cus_;
+ // Path where the 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