OLD | NEW |
1 // Copyright (c) 2011 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_PREFERENCE_HELPERS_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFERENCE_HELPERS_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFERENCE_HELPERS_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFERENCE_HELPERS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "chrome/browser/extensions/extension_prefs_scope.h" | 11 #include "chrome/browser/extensions/extension_prefs_scope.h" |
12 | 12 |
| 13 class Profile; |
| 14 |
13 namespace extension_preference_helpers { | 15 namespace extension_preference_helpers { |
14 bool StringToScope(const std::string& s, ExtensionPrefsScope* scope); | 16 bool StringToScope(const std::string& s, ExtensionPrefsScope* scope); |
| 17 |
| 18 // Returns a string constant (defined in the API) indicating the level of |
| 19 // control this extension has over the specified preference. |
| 20 const char* GetLevelOfControl( |
| 21 Profile* profile, |
| 22 const std::string& extension_id, |
| 23 const std::string& browser_pref, |
| 24 bool incognito); |
15 } | 25 } |
16 | 26 |
17 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFERENCE_HELPERS_H_ | 27 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFERENCE_HELPERS_H_ |
OLD | NEW |