1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef EXTENSIONS_BROWSER_PREF_NAMES_H_
6 #define EXTENSIONS_BROWSER_PREF_NAMES_H_
10 #include "extensions/browser/extension_prefs_scope.h"
12 namespace extensions
{
14 // Preference keys which are needed by both the ExtensionPrefs and by external
15 // clients, such as APIs.
16 namespace pref_names
{
18 // If the given |scope| is persisted, return true and populate |result| with the
19 // appropriate pref name. If |scope| is not persisted, return false, and leave
20 // |result| unchanged.
21 bool ScopeToPrefName(ExtensionPrefsScope scope
, std::string
* result
);
23 // A preference that contains any extension-controlled preferences.
24 extern const char kPrefPreferences
[];
26 // A preference that contains any extension-controlled incognito preferences.
27 extern const char kPrefIncognitoPreferences
[];
29 // A preference that contains any extension-controlled regular-only preferences.
30 extern const char kPrefRegularOnlyPreferences
[];
32 // A preference that contains extension-set content settings.
33 extern const char kPrefContentSettings
[];
35 // A preference that contains extension-set content settings.
36 extern const char kPrefIncognitoContentSettings
[];
38 } // namespace pref_names
40 } // namespace extensions
42 #endif // EXTENSIONS_BROWSER_PREF_NAMES_H_