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

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

Issue 559603002: Add new ExtensionManagement preference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase; fixes Created 6 years, 3 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
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 // 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
13 // clients, such as APIs. 13 // clients, such as APIs.
14 14
15 namespace extensions { 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 property (i.e. one of kPref*) within a kExtensions dictionary. If 19 // appropriate property (i.e. one of kPref*) within a kExtensions dictionary. If
20 // |scope| is not persisted, return false, and leave |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 // Browser-level preferences --------------------------------------------------- 23 // Browser-level preferences ---------------------------------------------------
24 24
25 // Whether we have run the extension-alert system (see ExtensionGlobalError) 25 // Whether we have run the extension-alert system (see ExtensionGlobalError)
26 // at least once for this profile. 26 // at least once for this profile.
27 extern const char kAlertsInitialized[]; 27 extern const char kAlertsInitialized[];
28 28
29 // DEPRECATED: use kExtensionManagement instead.
Joao da Silva 2014/09/18 12:08:22 Actually no one should read these prefs directly.
binjin 2014/09/18 14:37:27 Removed.
29 // The sites that are allowed to install extensions. These sites should be 30 // The sites that are allowed to install extensions. These sites should be
30 // allowed to install extensions without the scary dangerous downloads bar. 31 // allowed to install extensions without the scary dangerous downloads bar.
31 // Also, when off-store-extension installs are disabled, these sites are exempt. 32 // Also, when off-store-extension installs are disabled, these sites are exempt.
32 extern const char kAllowedInstallSites[]; 33 extern const char kAllowedInstallSites[];
33 34
35 // DEPRECATED: use kExtensionManagement instead.
34 // A list of allowed extension types. Extensions can only be installed if their 36 // A list of allowed extension types. Extensions can only be installed if their
35 // type is on this whitelist or alternatively on kInstallAllowList or 37 // type is on this whitelist or alternatively on kInstallAllowList or
36 // kInstallForceList. 38 // kInstallForceList.
37 extern const char kAllowedTypes[]; 39 extern const char kAllowedTypes[];
38 40
39 // A boolean that tracks whether apps are allowed to enter fullscreen mode. 41 // A boolean that tracks whether apps are allowed to enter fullscreen mode.
40 extern const char kAppFullscreenAllowed[]; 42 extern const char kAppFullscreenAllowed[];
41 43
42 // Integer which specifies the launch type that bookmark apps are created with 44 // Integer which specifies the launch type that bookmark apps are created with
43 // by default. 45 // by default.
44 extern const char kBookmarkAppCreationLaunchType[]; 46 extern const char kBookmarkAppCreationLaunchType[];
45 47
46 // Dictionary pref that keeps track of per-extension settings. The keys are 48 // Dictionary pref that keeps track of per-extension settings. The keys are
47 // extension ids. 49 // extension ids.
48 extern const char kExtensions[]; 50 extern const char kExtensions[];
49 51
52 // Dictionary pref that manages extensions, controlled by policy.
53 // Values are expected to conform to the schema of the ExtensionManagement
54 // policy.
55 extern const char kExtensionManagement[];
56
57 // DEPRECATED: use kExtensionManagement instead.
50 // A whitelist of extension ids the user can install: exceptions from the 58 // A whitelist of extension ids the user can install: exceptions from the
51 // following blacklist. 59 // following blacklist.
52 extern const char kInstallAllowList[]; 60 extern const char kInstallAllowList[];
53 61
62 // DEPRECATED: use kExtensionManagement instead.
54 // A blacklist, containing extensions the user cannot install. This list can 63 // A blacklist, containing extensions the user cannot install. This list can
55 // contain "*" meaning all extensions. This list should not be confused with the 64 // contain "*" meaning all extensions. This list should not be confused with the
56 // extension blacklist, which is Google controlled. 65 // extension blacklist, which is Google controlled.
57 extern const char kInstallDenyList[]; 66 extern const char kInstallDenyList[];
58 67
68 // DEPRECATED: use kExtensionManagement instead.
59 // A list containing extensions that Chrome will silently install 69 // A list containing extensions that Chrome will silently install
60 // at startup time. It is a list of strings, each string contains 70 // at startup time. It is a list of strings, each string contains
61 // an extension ID and an update URL, delimited by a semicolon. 71 // an extension ID and an update URL, delimited by a semicolon.
62 // This preference is set by an admin policy, and meant to be only 72 // This preference is set by an admin policy, and meant to be only
63 // accessed through extensions::ExternalPolicyProvider. 73 // accessed through extensions::ExternalPolicyProvider.
64 extern const char kInstallForceList[]; 74 extern const char kInstallForceList[];
65 75
66 // String pref for what version chrome was last time the extension prefs were 76 // String pref for what version chrome was last time the extension prefs were
67 // loaded. 77 // loaded.
68 extern const char kLastChromeVersion[]; 78 extern const char kLastChromeVersion[];
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // Extension-set content settings. 116 // Extension-set content settings.
107 extern const char kPrefContentSettings[]; 117 extern const char kPrefContentSettings[];
108 118
109 // Extension-set incognito content settings. 119 // Extension-set incognito content settings.
110 extern const char kPrefIncognitoContentSettings[]; 120 extern const char kPrefIncognitoContentSettings[];
111 121
112 } // namespace pref_names 122 } // namespace pref_names
113 } // namespace extensions 123 } // namespace extensions
114 124
115 #endif // EXTENSIONS_BROWSER_PREF_NAMES_H_ 125 #endif // EXTENSIONS_BROWSER_PREF_NAMES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698