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

Unified Diff: chrome/browser/extensions/extension_scoped_prefs.h

Issue 10689097: Enforce the 'requirements' field in manifests. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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/extensions/extension_scoped_prefs.h
diff --git a/chrome/browser/extensions/extension_scoped_prefs.h b/chrome/browser/extensions/extension_scoped_prefs.h
index 0989f143ed98c0f0e4edfe663e7b6f9536a25b43..d69b35cfcfef3d9850df8b908ffe41655f221c70 100644
--- a/chrome/browser/extensions/extension_scoped_prefs.h
+++ b/chrome/browser/extensions/extension_scoped_prefs.h
@@ -15,6 +15,12 @@ class ExtensionScopedPrefs {
const std::string& key,
base::Value* value) = 0;
+ // Sets the pref |key| for extension |id| to |value|.
+ virtual void UpdateExtensionPrefList(
+ const std::string& id,
+ const std::string& key,
+ const std::vector<std::string>& value) = 0;
+
// Deletes the pref dictionary for extension |id|.
virtual void DeleteExtensionPrefs(const std::string& id) = 0;
@@ -33,6 +39,13 @@ class ExtensionScopedPrefs {
const std::string& pref_key,
const base::ListValue** out_value) const = 0;
+ // Reads a list of string prefs |pref_key| from extension with id
+ // |extension_id|.
+ virtual bool ReadExtensionPrefStringList(
+ const std::string& extension_id,
+ const std::string& pref_key,
+ std::vector<std::string>* out_value) const = 0;
+
// Reads a string pref |pref_key| from extension with id |extension_id|.
virtual bool ReadExtensionPrefString(const std::string& extension_id,
const std::string& pref_key,

Powered by Google App Engine
This is Rietveld 408576698