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

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

Issue 46853004: Move ExtensionPrefs and friends to extensions/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync and update app_shell Created 6 years, 11 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
deleted file mode 100644
index 75b27cc2d52cab8c4c76ddbb5bdd2a1dbb80b0db..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/extension_scoped_prefs.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SCOPED_PREFS_H_
-#define CHROME_BROWSER_EXTENSIONS_EXTENSION_SCOPED_PREFS_H_
-
-namespace extensions {
-
-class ExtensionScopedPrefs {
- public:
- ExtensionScopedPrefs() {}
- ~ExtensionScopedPrefs() {}
-
- // Sets the pref |key| for extension |id| to |value|.
- virtual void UpdateExtensionPref(const std::string& id,
- const std::string& key,
- base::Value* value) = 0;
-
- // Deletes the pref dictionary for extension |id|.
- virtual void DeleteExtensionPrefs(const std::string& id) = 0;
-
- // Reads a boolean pref |pref_key| from extension with id |extension_id|.
- virtual bool ReadPrefAsBoolean(const std::string& extension_id,
- const std::string& pref_key,
- bool* out_value) const = 0;
-
- // Reads an integer pref |pref_key| from extension with id |extension_id|.
- virtual bool ReadPrefAsInteger(const std::string& extension_id,
- const std::string& pref_key,
- int* out_value) const = 0;
-
- // Reads a string pref |pref_key| from extension with id |extension_id|.
- virtual bool ReadPrefAsString(const std::string& extension_id,
- const std::string& pref_key,
- std::string* out_value) const = 0;
-
- // Reads a list pref |pref_key| from extension with id |extension_id|.
- virtual bool ReadPrefAsList(const std::string& extension_id,
- const std::string& pref_key,
- const base::ListValue** out_value) const = 0;
-
- // Reads a dictionary pref |pref_key| from extension with id |extension_id|.
- virtual bool ReadPrefAsDictionary(
- const std::string& extension_id,
- const std::string& pref_key,
- const base::DictionaryValue** out_value) const = 0;
-
- // Returns true if the prefs contain an entry for an extension with id
- // |extension_id|.
- virtual bool HasPrefForExtension(const std::string& extension_id) const = 0;
-};
-
-} // namespace extensions
-
-#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SCOPED_PREFS_H_
« no previous file with comments | « chrome/browser/extensions/extension_prefs_unittest.cc ('k') | chrome/browser/extensions/extension_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698