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 #include "extensions/browser/pref_names.h"
7 #include "base/logging.h"
10 namespace pref_names
{
12 bool ScopeToPrefName(ExtensionPrefsScope scope
, std::string
* result
) {
14 case kExtensionPrefsScopeRegular
:
15 *result
= kPrefPreferences
;
17 case kExtensionPrefsScopeRegularOnly
:
18 *result
= kPrefRegularOnlyPreferences
;
20 case kExtensionPrefsScopeIncognitoPersistent
:
21 *result
= kPrefIncognitoPreferences
;
23 case kExtensionPrefsScopeIncognitoSessionOnly
:
30 const char kAlertsInitialized
[] = "extensions.alerts.initialized";
31 const char kAllowedInstallSites
[] = "extensions.allowed_install_sites";
32 const char kAllowedTypes
[] = "extensions.allowed_types";
33 const char kBookmarkAppCreationLaunchType
[] =
34 "extensions.bookmark_app_creation_launch_type";
35 const char kBrowserActionContainerWidth
[] =
36 "extensions.browseractions.container.width";
37 const char kExtensions
[] = "extensions.settings";
38 const char kInstallAllowList
[] = "extensions.install.allowlist";
39 const char kInstallDenyList
[] = "extensions.install.denylist";
40 const char kInstallForceList
[] = "extensions.install.forcelist";
41 const char kKnownDisabled
[] = "extensions.known_disabled";
42 const char kLastChromeVersion
[] = "extensions.last_chrome_version";
43 const char kLastUpdateCheck
[] = "extensions.autoupdate.last_check";
44 const char kNativeMessagingBlacklist
[] = "native_messaging.blacklist";
45 const char kNativeMessagingWhitelist
[] = "native_messaging.whitelist";
46 const char kNativeMessagingUserLevelHosts
[] =
47 "native_messaging.user_level_hosts";
48 const char kNextUpdateCheck
[] = "extensions.autoupdate.next_check";
49 const char kStorageGarbageCollect
[] = "extensions.storage.garbagecollect";
50 const char kToolbar
[] = "extensions.toolbar";
51 const char kToolbarSize
[] = "extensions.toolbarsize";
53 const char kPrefPreferences
[] = "preferences";
54 const char kPrefIncognitoPreferences
[] = "incognito_preferences";
55 const char kPrefRegularOnlyPreferences
[] = "regular_only_preferences";
56 const char kPrefContentSettings
[] = "content_settings";
57 const char kPrefIncognitoContentSettings
[] = "incognito_content_settings";
59 } // namespace pref_names
60 } // namespace extensions