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

Unified Diff: chrome/browser/chromeos/cros_settings_provider.h

Issue 8727037: Signed settings refactoring: Proper caching and more tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased to ToT and removed some debug output left. Created 9 years, 1 month 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/chromeos/cros_settings_provider.h
diff --git a/chrome/browser/chromeos/cros_settings_provider.h b/chrome/browser/chromeos/cros_settings_provider.h
index c050092b22543076dd79392c880f6bccc48c1c29..0fef52cf0915488bc850fb6469686b49e8733fbf 100644
--- a/chrome/browser/chromeos/cros_settings_provider.h
+++ b/chrome/browser/chromeos/cros_settings_provider.h
@@ -23,18 +23,21 @@ class CrosSettingsProvider {
void Set(const std::string& path, const base::Value& in_value);
// Gets settings value of given |path| to |out_value|.
- virtual const base::Value* Get(const std::string& path) const = 0;
+ virtual base::Value* Get(const std::string& path) const = 0;
Mattias Nissler (ping if slow) 2011/11/30 11:22:44 Why is this no longer const? I hope it doesn't ret
pastarmovj 2011/11/30 17:21:16 Const again.
// Starts a fetch from the trusted store for the value of |path| if not loaded
// yet. It will call the |callback| function upon completion if a new fetch
// was needed in which case the return value is false. Else it will return
// true and won't call the |callback|.
virtual bool GetTrusted(const std::string& path,
- const base::Closure& callback) const = 0;
+ const base::Closure& callback) = 0;
- // Gets the namespace prefix provided by this provider
+ // Gets the namespace prefix provided by this provider.
virtual bool HandlesSetting(const std::string& path) const = 0;
+ // Reloads the caches if the provider has any.
+ virtual void Reload() = 0;
+
private:
// Does the real job for Set().
virtual void DoSet(const std::string& path,

Powered by Google App Engine
This is Rietveld 408576698