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

Unified Diff: components/update_client/configurator.h

Issue 1861383004: Add module for counting date-last-roll-call and persisting those counts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another test fix. Created 4 years, 8 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
« no previous file with comments | « components/update_client/DEPS ('k') | components/update_client/persisted_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/update_client/configurator.h
diff --git a/components/update_client/configurator.h b/components/update_client/configurator.h
index 177c4a7771b19a5142da98b2411be356e7cc902c..63745c038e8ece6dd619fe4b8a462f84e08d38e9 100644
--- a/components/update_client/configurator.h
+++ b/components/update_client/configurator.h
@@ -12,6 +12,7 @@
#include "base/memory/scoped_ptr.h"
class GURL;
+class PrefService;
namespace base {
class SequencedTaskRunner;
@@ -111,6 +112,14 @@ class Configurator : public base::RefCountedThreadSafe<Configurator> {
virtual scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner()
const = 0;
+ // Returns a PrefService that the update_client can use to store persistent
+ // update information. The PrefService must outlive the entire update_client,
+ // and be safe to access from the thread the update_client is constructed
+ // on.
+ // Returning null is safe and will disable any functionality that requires
+ // persistent storage.
+ virtual PrefService* GetPrefService() const = 0;
+
protected:
friend class base::RefCountedThreadSafe<Configurator>;
« no previous file with comments | « components/update_client/DEPS ('k') | components/update_client/persisted_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698