OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 extern const char kCannotChangeExtensionID[]; | 142 extern const char kCannotChangeExtensionID[]; |
143 extern const char kCannotClaimAllHostsInExtent[]; | 143 extern const char kCannotClaimAllHostsInExtent[]; |
144 extern const char kCannotClaimAllURLsInExtent[]; | 144 extern const char kCannotClaimAllURLsInExtent[]; |
145 extern const char kCannotScriptGallery[]; | 145 extern const char kCannotScriptGallery[]; |
146 extern const char kCannotUninstallManagedExtension[]; | 146 extern const char kCannotUninstallManagedExtension[]; |
147 extern const char kChromeVersionTooLow[]; | 147 extern const char kChromeVersionTooLow[]; |
148 extern const char kDevToolsExperimental[]; | 148 extern const char kDevToolsExperimental[]; |
149 extern const char kDisabledByPolicy[]; | 149 extern const char kDisabledByPolicy[]; |
150 extern const char kExperimentalFlagRequired[]; | 150 extern const char kExperimentalFlagRequired[]; |
151 extern const char kExpectString[]; | 151 extern const char kExpectString[]; |
152 extern const char kHostedAppsCannotIncludeExtensionFeatures[]; | 152 extern const char kFeatureNotAllowed[]; |
153 extern const char kInvalidAllFrames[]; | 153 extern const char kInvalidAllFrames[]; |
154 extern const char kInvalidBackground[]; | 154 extern const char kInvalidBackground[]; |
155 extern const char kInvalidBackgroundInHostedApp[]; | 155 extern const char kInvalidBackgroundInHostedApp[]; |
156 extern const char kInvalidBrowserAction[]; | 156 extern const char kInvalidBrowserAction[]; |
157 extern const char kInvalidBrowseURL[]; | 157 extern const char kInvalidBrowseURL[]; |
158 extern const char kInvalidBrowseURLs[]; | 158 extern const char kInvalidBrowseURLs[]; |
159 extern const char kInvalidChromeURLOverrides[]; | 159 extern const char kInvalidChromeURLOverrides[]; |
160 extern const char kInvalidContentScript[]; | 160 extern const char kInvalidContentScript[]; |
161 extern const char kInvalidContentScriptsList[]; | 161 extern const char kInvalidContentScriptsList[]; |
162 extern const char kInvalidContentSecurityPolicy[]; | 162 extern const char kInvalidContentSecurityPolicy[]; |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 extern const char kLocalesTreeMissing[]; | 271 extern const char kLocalesTreeMissing[]; |
272 extern const char kManifestParseError[]; | 272 extern const char kManifestParseError[]; |
273 extern const char kManifestUnreadable[]; | 273 extern const char kManifestUnreadable[]; |
274 extern const char kMissingFile[]; | 274 extern const char kMissingFile[]; |
275 extern const char kMultipleOverrides[]; | 275 extern const char kMultipleOverrides[]; |
276 extern const char kNoWildCardsInPaths[]; | 276 extern const char kNoWildCardsInPaths[]; |
277 extern const char kPermissionNotAllowed[]; | 277 extern const char kPermissionNotAllowed[]; |
278 extern const char kOneUISurfaceOnly[]; | 278 extern const char kOneUISurfaceOnly[]; |
279 extern const char kReservedMessageFound[]; | 279 extern const char kReservedMessageFound[]; |
280 extern const char kSidebarExperimental[]; | 280 extern const char kSidebarExperimental[]; |
281 extern const char kThemesCannotContainExtensions[]; | |
282 extern const char kWebContentMustBeEnabled[]; | 281 extern const char kWebContentMustBeEnabled[]; |
283 #if defined(OS_CHROMEOS) | 282 #if defined(OS_CHROMEOS) |
284 extern const char kIllegalPlugins[]; | 283 extern const char kIllegalPlugins[]; |
285 #endif | 284 #endif |
286 } // namespace extension_manifest_errors | 285 } // namespace extension_manifest_errors |
287 | 286 |
288 namespace extension_urls { | 287 namespace extension_urls { |
289 // Returns the URL prefix for the extension/apps gallery. Can be set via the | 288 // Returns the URL prefix for the extension/apps gallery. Can be set via the |
290 // --apps-gallery-url switch. The URL returned will not contain a trailing | 289 // --apps-gallery-url switch. The URL returned will not contain a trailing |
291 // slash. Do not use this as a prefix/extent for the store. Instead see | 290 // slash. Do not use this as a prefix/extent for the store. Instead see |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 | 450 |
452 enum UnloadedExtensionReason { | 451 enum UnloadedExtensionReason { |
453 UNLOAD_REASON_DISABLE, // Extension is being disabled. | 452 UNLOAD_REASON_DISABLE, // Extension is being disabled. |
454 UNLOAD_REASON_UPDATE, // Extension is being updated to a newer version. | 453 UNLOAD_REASON_UPDATE, // Extension is being updated to a newer version. |
455 UNLOAD_REASON_UNINSTALL, // Extension is being uninstalled. | 454 UNLOAD_REASON_UNINSTALL, // Extension is being uninstalled. |
456 UNLOAD_REASON_TERMINATE, // Extension has terminated. | 455 UNLOAD_REASON_TERMINATE, // Extension has terminated. |
457 }; | 456 }; |
458 } // extension_misc | 457 } // extension_misc |
459 | 458 |
460 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 459 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |
OLD | NEW |