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

Side by Side Diff: chrome/browser/extensions/extension_scoped_prefs.h

Issue 12224027: Revert "GTTF: Add missing virtual destructors." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 CHROME_BROWSER_EXTENSIONS_EXTENSION_SCOPED_PREFS_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SCOPED_PREFS_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SCOPED_PREFS_H_
7 7
8 class ExtensionScopedPrefs { 8 class ExtensionScopedPrefs {
9 public: 9 public:
10 ExtensionScopedPrefs() {} 10 ExtensionScopedPrefs() {}
11 virtual ~ExtensionScopedPrefs() {} 11 ~ExtensionScopedPrefs() {}
12 12
13 // Sets the pref |key| for extension |id| to |value|. 13 // Sets the pref |key| for extension |id| to |value|.
14 virtual void UpdateExtensionPref(const std::string& id, 14 virtual void UpdateExtensionPref(const std::string& id,
15 const std::string& key, 15 const std::string& key,
16 base::Value* value) = 0; 16 base::Value* value) = 0;
17 17
18 // Deletes the pref dictionary for extension |id|. 18 // Deletes the pref dictionary for extension |id|.
19 virtual void DeleteExtensionPrefs(const std::string& id) = 0; 19 virtual void DeleteExtensionPrefs(const std::string& id) = 0;
20 20
21 // Reads a boolean pref |pref_key| from extension with id |extension_id|. 21 // Reads a boolean pref |pref_key| from extension with id |extension_id|.
(...skipping 11 matching lines...) Expand all
33 const std::string& pref_key, 33 const std::string& pref_key,
34 const base::ListValue** out_value) const = 0; 34 const base::ListValue** out_value) const = 0;
35 35
36 // Reads a string pref |pref_key| from extension with id |extension_id|. 36 // Reads a string pref |pref_key| from extension with id |extension_id|.
37 virtual bool ReadExtensionPrefString(const std::string& extension_id, 37 virtual bool ReadExtensionPrefString(const std::string& extension_id,
38 const std::string& pref_key, 38 const std::string& pref_key,
39 std::string* out_value) const = 0; 39 std::string* out_value) const = 0;
40 }; 40 };
41 41
42 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SCOPED_PREFS_H_ 42 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SCOPED_PREFS_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_keybinding_registry.h ('k') | chrome/browser/extensions/extension_warning_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698