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

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

Issue 10698144: Remove #pragma once from chrome/browser/extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 #pragma once
8 7
9 class ExtensionScopedPrefs { 8 class ExtensionScopedPrefs {
10 public: 9 public:
11 ExtensionScopedPrefs() {} 10 ExtensionScopedPrefs() {}
12 ~ExtensionScopedPrefs() {} 11 ~ExtensionScopedPrefs() {}
13 12
14 // Sets the pref |key| for extension |id| to |value|. 13 // Sets the pref |key| for extension |id| to |value|.
15 virtual void UpdateExtensionPref(const std::string& id, 14 virtual void UpdateExtensionPref(const std::string& id,
16 const std::string& key, 15 const std::string& key,
17 base::Value* value) = 0; 16 base::Value* value) = 0;
(...skipping 16 matching lines...) Expand all
34 const std::string& pref_key, 33 const std::string& pref_key,
35 const base::ListValue** out_value) const = 0; 34 const base::ListValue** out_value) const = 0;
36 35
37 // 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|.
38 virtual bool ReadExtensionPrefString(const std::string& extension_id, 37 virtual bool ReadExtensionPrefString(const std::string& extension_id,
39 const std::string& pref_key, 38 const std::string& pref_key,
40 std::string* out_value) const = 0; 39 std::string* out_value) const = 0;
41 }; 40 };
42 41
43 #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_resource_protocols.h ('k') | chrome/browser/extensions/extension_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698