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

Side by Side Diff: extensions/browser/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 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 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
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_
OLDNEW
« no previous file with comments | « extensions/browser/extension_prefs_factory.cc ('k') | extensions/browser/extensions_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698