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

Side by Side Diff: extensions/browser/pref_names.h

Issue 140343002: extensions: Relocate pref name constants. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing include for mac Created 6 years, 11 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
« no previous file with comments | « chrome/common/pref_names.cc ('k') | extensions/browser/pref_names.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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 EXTENSIONS_BROWSER_PREF_NAMES_H_ 5 #ifndef EXTENSIONS_BROWSER_PREF_NAMES_H_
6 #define EXTENSIONS_BROWSER_PREF_NAMES_H_ 6 #define EXTENSIONS_BROWSER_PREF_NAMES_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "extensions/browser/extension_prefs_scope.h" 10 #include "extensions/browser/extension_prefs_scope.h"
11 11
12 namespace extensions {
13
14 // Preference keys which are needed by both the ExtensionPrefs and by external 12 // Preference keys which are needed by both the ExtensionPrefs and by external
15 // clients, such as APIs. 13 // clients, such as APIs.
14
15 namespace extensions {
16 namespace pref_names { 16 namespace pref_names {
17 17
18 // If the given |scope| is persisted, return true and populate |result| with the 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 19 // appropriate property (i.e. one of kPref*) within a kExtensions dictionary. If
20 // |result| unchanged. 20 // |scope| is not persisted, return false, and leave |result| unchanged.
21 bool ScopeToPrefName(ExtensionPrefsScope scope, std::string* result); 21 bool ScopeToPrefName(ExtensionPrefsScope scope, std::string* result);
22 22
23 // A preference that contains any extension-controlled preferences. 23 // Browser-level preferences ---------------------------------------------------
24
25 // Dictionary pref that keeps track of per-extension settings. The keys are
26 // extension ids.
27 extern const char kExtensions[];
28
29 // String pref for what version chrome was last time the extension prefs were
30 // loaded.
31 extern const char kLastChromeVersion[];
Yoyo Zhou 2014/01/16 19:49:05 Can these be in alphabetical order?
Daniel Erat 2014/01/16 20:50:31 Done.
32
33 // Whether we have run the extension-alert system (see ExtensionGlobalError)
34 // at least once for this profile.
35 extern const char kAlertsInitialized[];
36
37 // Indicates on-disk data might have skeletal data that needs to be cleaned
38 // on the next start of the browser.
39 extern const char kStorageGarbageCollect[];
40
41 // A whitelist of extension ids the user can install: exceptions from the
42 // following blacklist.
43 extern const char kInstallAllowList[];
44
45 // A list containing extensions that Chrome will silently install
46 // at startup time. It is a list of strings, each string contains
47 // an extension ID and an update URL, delimited by a semicolon.
48 // This preference is set by an admin policy, and meant to be only
49 // accessed through extensions::ExternalPolicyProvider.
50 extern const char kInstallForceList[];
51
52 // A blacklist, containing extensions the user cannot install. This list can
53 // contain "*" meaning all extensions. This list should not be confused with the
54 // extension blacklist, which is Google controlled.
55 extern const char kInstallDenyList[];
56
57 // A list of known disabled extensions IDs.
58 extern const char kKnownDisabled[];
59
60 // The sites that are allowed to install extensions. These sites should be
61 // allowed to install extensions without the scary dangerous downloads bar.
62 // Also, when off-store-extension installs are disabled, these sites are exempt.
63 extern const char kAllowedInstallSites[];
64
65 // A list of allowed extension types. Extensions can only be installed if their
66 // type is on this whitelist or alternatively on kInstallAllowList or
67 // kInstallForceList.
68 extern const char kAllowedTypes[];
69
70 // Time of the last, and next scheduled, extensions auto-update checks.
71 extern const char kLastUpdateCheck[];
72 extern const char kNextUpdateCheck[];
73
74 // A preference that tracks browser action toolbar configuration. This is a list
75 // object stored in the Preferences file. The extensions are stored by ID.
76 extern const char kToolbar[];
77
78 // Integer pref that tracks the number of browser actions visible in the browser
79 // actions toolbar.
80 extern const char kToolbarSize[];
81
82 // Integer boolean representing the width (in pixels) of the container for
83 // browser actions.
84 extern const char kBrowserActionContainerWidth[];
85
86 // Blacklist and whitelist for Native Messaging Hosts.
87 extern const char kNativeMessagingBlacklist[];
88 extern const char kNativeMessagingWhitelist[];
89
90 // Properties in kExtensions dictionaries --------------------------------------
91
92 // Extension-controlled preferences.
24 extern const char kPrefPreferences[]; 93 extern const char kPrefPreferences[];
25 94
26 // A preference that contains any extension-controlled incognito preferences. 95 // Extension-controlled incognito preferences.
27 extern const char kPrefIncognitoPreferences[]; 96 extern const char kPrefIncognitoPreferences[];
28 97
29 // A preference that contains any extension-controlled regular-only preferences. 98 // Extension-controlled regular-only preferences.
30 extern const char kPrefRegularOnlyPreferences[]; 99 extern const char kPrefRegularOnlyPreferences[];
31 100
32 // A preference that contains extension-set content settings. 101 // Extension-set content settings.
33 extern const char kPrefContentSettings[]; 102 extern const char kPrefContentSettings[];
34 103
35 // A preference that contains extension-set content settings. 104 // Extension-set incognito content settings.
36 extern const char kPrefIncognitoContentSettings[]; 105 extern const char kPrefIncognitoContentSettings[];
37 106
38 } // namespace pref_names 107 } // namespace pref_names
39
40 } // namespace extensions 108 } // namespace extensions
41 109
42 #endif // EXTENSIONS_BROWSER_PREF_NAMES_H_ 110 #endif // EXTENSIONS_BROWSER_PREF_NAMES_H_
OLDNEW
« no previous file with comments | « chrome/common/pref_names.cc ('k') | extensions/browser/pref_names.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698