Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 15:23:54
Remove this too
binjin
2014/09/18 15:49:05
Done.
| |
| 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. | |
|
Joao da Silva
2014/09/18 15:23:54
And this
binjin
2014/09/18 15:49:05
Done.
| |
| 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 | |
| 50 // A whitelist of extension ids the user can install: exceptions from the | 57 // A whitelist of extension ids the user can install: exceptions from the |
| 51 // following blacklist. | 58 // following blacklist. |
| 52 extern const char kInstallAllowList[]; | 59 extern const char kInstallAllowList[]; |
| 53 | 60 |
| 54 // A blacklist, containing extensions the user cannot install. This list can | 61 // A blacklist, containing extensions the user cannot install. This list can |
| 55 // contain "*" meaning all extensions. This list should not be confused with the | 62 // contain "*" meaning all extensions. This list should not be confused with the |
| 56 // extension blacklist, which is Google controlled. | 63 // extension blacklist, which is Google controlled. |
| 57 extern const char kInstallDenyList[]; | 64 extern const char kInstallDenyList[]; |
| 58 | 65 |
| 59 // A list containing extensions that Chrome will silently install | 66 // A list containing extensions that Chrome will silently install |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 106 // Extension-set content settings. | 113 // Extension-set content settings. |
| 107 extern const char kPrefContentSettings[]; | 114 extern const char kPrefContentSettings[]; |
| 108 | 115 |
| 109 // Extension-set incognito content settings. | 116 // Extension-set incognito content settings. |
| 110 extern const char kPrefIncognitoContentSettings[]; | 117 extern const char kPrefIncognitoContentSettings[]; |
| 111 | 118 |
| 112 } // namespace pref_names | 119 } // namespace pref_names |
| 113 } // namespace extensions | 120 } // namespace extensions |
| 114 | 121 |
| 115 #endif // EXTENSIONS_BROWSER_PREF_NAMES_H_ | 122 #endif // EXTENSIONS_BROWSER_PREF_NAMES_H_ |
| OLD | NEW |