OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SCOPED_PREFS_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_SCOPED_PREFS_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SCOPED_PREFS_H_ | 6 #define EXTENSIONS_BROWSER_EXTENSION_SCOPED_PREFS_H_ |
7 | 7 |
8 namespace extensions { | 8 namespace extensions { |
9 | 9 |
10 class ExtensionScopedPrefs { | 10 class ExtensionScopedPrefs { |
11 public: | 11 public: |
12 ExtensionScopedPrefs() {} | 12 ExtensionScopedPrefs() {} |
13 ~ExtensionScopedPrefs() {} | 13 ~ExtensionScopedPrefs() {} |
14 | 14 |
15 // Sets the pref |key| for extension |id| to |value|. | 15 // Sets the pref |key| for extension |id| to |value|. |
16 virtual void UpdateExtensionPref(const std::string& id, | 16 virtual void UpdateExtensionPref(const std::string& id, |
(...skipping 29 matching lines...) Expand all Loading... |
46 const std::string& pref_key, | 46 const std::string& pref_key, |
47 const base::DictionaryValue** out_value) const = 0; | 47 const base::DictionaryValue** out_value) const = 0; |
48 | 48 |
49 // Returns true if the prefs contain an entry for an extension with id | 49 // Returns true if the prefs contain an entry for an extension with id |
50 // |extension_id|. | 50 // |extension_id|. |
51 virtual bool HasPrefForExtension(const std::string& extension_id) const = 0; | 51 virtual bool HasPrefForExtension(const std::string& extension_id) const = 0; |
52 }; | 52 }; |
53 | 53 |
54 } // namespace extensions | 54 } // namespace extensions |
55 | 55 |
56 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SCOPED_PREFS_H_ | 56 #endif // EXTENSIONS_BROWSER_EXTENSION_SCOPED_PREFS_H_ |
OLD | NEW |