Move render_view_context_menu.* and related files out of tab_contents.
[chromium-blink-merge.git] / extensions / browser / pref_names.h
blob96afa216447692476c9b70ac175a48317b1c5369
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_
8 #include <string>
10 #include "extensions/browser/extension_prefs_scope.h"
12 // Preference keys which are needed by both the ExtensionPrefs and by external
13 // clients, such as APIs.
15 namespace extensions {
16 namespace pref_names {
18 // If the given |scope| is persisted, return true and populate |result| with the
19 // appropriate property (i.e. one of kPref*) within a kExtensions dictionary. If
20 // |scope| is not persisted, return false, and leave |result| unchanged.
21 bool ScopeToPrefName(ExtensionPrefsScope scope, std::string* result);
23 // Browser-level preferences ---------------------------------------------------
25 // Whether we have run the extension-alert system (see ExtensionGlobalError)
26 // at least once for this profile.
27 extern const char kAlertsInitialized[];
29 // The sites that are allowed to install extensions. These sites should be
30 // allowed to install extensions without the scary dangerous downloads bar.
31 // Also, when off-store-extension installs are disabled, these sites are exempt.
32 extern const char kAllowedInstallSites[];
34 // A list of allowed extension types. Extensions can only be installed if their
35 // type is on this whitelist or alternatively on kInstallAllowList or
36 // kInstallForceList.
37 extern const char kAllowedTypes[];
39 // Integer which specifies the launch type that bookmark apps are created with
40 // by default.
41 extern const char kBookmarkAppCreationLaunchType[];
43 // Integer boolean representing the width (in pixels) of the container for
44 // browser actions.
45 extern const char kBrowserActionContainerWidth[];
47 // Dictionary pref that keeps track of per-extension settings. The keys are
48 // extension ids.
49 extern const char kExtensions[];
51 // A whitelist of extension ids the user can install: exceptions from the
52 // following blacklist.
53 extern const char kInstallAllowList[];
55 // A blacklist, containing extensions the user cannot install. This list can
56 // contain "*" meaning all extensions. This list should not be confused with the
57 // extension blacklist, which is Google controlled.
58 extern const char kInstallDenyList[];
60 // A list containing extensions that Chrome will silently install
61 // at startup time. It is a list of strings, each string contains
62 // an extension ID and an update URL, delimited by a semicolon.
63 // This preference is set by an admin policy, and meant to be only
64 // accessed through extensions::ExternalPolicyProvider.
65 extern const char kInstallForceList[];
67 // A list of known disabled extensions IDs.
68 extern const char kKnownDisabled[];
70 // String pref for what version chrome was last time the extension prefs were
71 // loaded.
72 extern const char kLastChromeVersion[];
74 // Time of the last extensions auto-update check.
75 extern const char kLastUpdateCheck[];
77 // Blacklist and whitelist for Native Messaging Hosts.
78 extern const char kNativeMessagingBlacklist[];
79 extern const char kNativeMessagingWhitelist[];
81 // Flag allowing usage of Native Messaging hosts installed on user level.
82 extern const char kNativeMessagingUserLevelHosts[];
84 // Time of the next scheduled extensions auto-update checks.
85 extern const char kNextUpdateCheck[];
87 // Indicates on-disk data might have skeletal data that needs to be cleaned
88 // on the next start of the browser.
89 extern const char kStorageGarbageCollect[];
91 // A preference that tracks browser action toolbar configuration. This is a list
92 // object stored in the Preferences file. The extensions are stored by ID.
93 extern const char kToolbar[];
95 // Integer pref that tracks the number of browser actions visible in the browser
96 // actions toolbar.
97 extern const char kToolbarSize[];
99 // Properties in kExtensions dictionaries --------------------------------------
101 // Extension-controlled preferences.
102 extern const char kPrefPreferences[];
104 // Extension-controlled incognito preferences.
105 extern const char kPrefIncognitoPreferences[];
107 // Extension-controlled regular-only preferences.
108 extern const char kPrefRegularOnlyPreferences[];
110 // Extension-set content settings.
111 extern const char kPrefContentSettings[];
113 // Extension-set incognito content settings.
114 extern const char kPrefIncognitoContentSettings[];
116 } // namespace pref_names
117 } // namespace extensions
119 #endif // EXTENSIONS_BROWSER_PREF_NAMES_H_