| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
| 13 | 13 |
| 14 // Keys used in JSON representation of extensions. | 14 // Keys used in JSON representation of extensions. |
| 15 namespace extension_manifest_keys { | 15 namespace extension_manifest_keys { |
| 16 extern const char kAllFrames[]; | 16 extern const char kAllFrames[]; |
| 17 extern const char kAltKey[]; | 17 extern const char kAltKey[]; |
| 18 extern const char kApp[]; | 18 extern const char kApp[]; |
| 19 extern const char kBackground[]; | 19 extern const char kBackground[]; |
| 20 extern const char kBackgroundPage[]; | 20 extern const char kBackgroundPage[]; |
| 21 extern const char kBackgroundPageLegacy[]; | 21 extern const char kBackgroundPageLegacy[]; |
| 22 extern const char kBackgroundScripts[]; |
| 22 extern const char kBrowserAction[]; | 23 extern const char kBrowserAction[]; |
| 23 extern const char kBrowseURLs[]; | 24 extern const char kBrowseURLs[]; |
| 24 extern const char kChromeURLOverrides[]; | 25 extern const char kChromeURLOverrides[]; |
| 25 extern const char kContentScripts[]; | 26 extern const char kContentScripts[]; |
| 26 extern const char kContentSecurityPolicy[]; | 27 extern const char kContentSecurityPolicy[]; |
| 27 extern const char kConvertedFromUserScript[]; | 28 extern const char kConvertedFromUserScript[]; |
| 28 extern const char kCss[]; | 29 extern const char kCss[]; |
| 29 extern const char kCtrlKey[]; | 30 extern const char kCtrlKey[]; |
| 30 extern const char kCurrentLocale[]; | 31 extern const char kCurrentLocale[]; |
| 31 extern const char kDefaultLocale[]; | 32 extern const char kDefaultLocale[]; |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 extern const char kCannotScriptGallery[]; | 149 extern const char kCannotScriptGallery[]; |
| 149 extern const char kCannotUninstallManagedExtension[]; | 150 extern const char kCannotUninstallManagedExtension[]; |
| 150 extern const char kChromeVersionTooLow[]; | 151 extern const char kChromeVersionTooLow[]; |
| 151 extern const char kDevToolsExperimental[]; | 152 extern const char kDevToolsExperimental[]; |
| 152 extern const char kDisabledByPolicy[]; | 153 extern const char kDisabledByPolicy[]; |
| 153 extern const char kExperimentalFlagRequired[]; | 154 extern const char kExperimentalFlagRequired[]; |
| 154 extern const char kExpectString[]; | 155 extern const char kExpectString[]; |
| 155 extern const char kFeatureNotAllowed[]; | 156 extern const char kFeatureNotAllowed[]; |
| 156 extern const char kInvalidAllFrames[]; | 157 extern const char kInvalidAllFrames[]; |
| 157 extern const char kInvalidBackground[]; | 158 extern const char kInvalidBackground[]; |
| 159 extern const char kInvalidBackgroundScript[]; |
| 160 extern const char kInvalidBackgroundScripts[]; |
| 158 extern const char kInvalidBackgroundInHostedApp[]; | 161 extern const char kInvalidBackgroundInHostedApp[]; |
| 159 extern const char kInvalidBrowserAction[]; | 162 extern const char kInvalidBrowserAction[]; |
| 160 extern const char kInvalidBrowseURL[]; | 163 extern const char kInvalidBrowseURL[]; |
| 161 extern const char kInvalidBrowseURLs[]; | 164 extern const char kInvalidBrowseURLs[]; |
| 162 extern const char kInvalidChromeURLOverrides[]; | 165 extern const char kInvalidChromeURLOverrides[]; |
| 163 extern const char kInvalidContentScript[]; | 166 extern const char kInvalidContentScript[]; |
| 164 extern const char kInvalidContentScriptsList[]; | 167 extern const char kInvalidContentScriptsList[]; |
| 165 extern const char kInvalidContentSecurityPolicy[]; | 168 extern const char kInvalidContentSecurityPolicy[]; |
| 166 extern const char kInvalidCss[]; | 169 extern const char kInvalidCss[]; |
| 167 extern const char kInvalidCssList[]; | 170 extern const char kInvalidCssList[]; |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 // The name of a temporary directory to install an extension into for | 330 // The name of a temporary directory to install an extension into for |
| 328 // validation before finalizing install. | 331 // validation before finalizing install. |
| 329 extern const char kTempExtensionName[]; | 332 extern const char kTempExtensionName[]; |
| 330 | 333 |
| 331 // The file to write our decoded images to, relative to the extension_path. | 334 // The file to write our decoded images to, relative to the extension_path. |
| 332 extern const char kDecodedImagesFilename[]; | 335 extern const char kDecodedImagesFilename[]; |
| 333 | 336 |
| 334 // The file to write our decoded message catalogs to, relative to the | 337 // The file to write our decoded message catalogs to, relative to the |
| 335 // extension_path. | 338 // extension_path. |
| 336 extern const char kDecodedMessageCatalogsFilename[]; | 339 extern const char kDecodedMessageCatalogsFilename[]; |
| 340 |
| 341 // The filename to use for a background page generated from |
| 342 // background.scripts. |
| 343 extern const char kGeneratedBackgroundPageFilename[]; |
| 337 } | 344 } |
| 338 | 345 |
| 339 namespace extension_misc { | 346 namespace extension_misc { |
| 340 const int kUnknownWindowId = -1; | 347 const int kUnknownWindowId = -1; |
| 341 | 348 |
| 342 // The extension id of the bookmark manager. | 349 // The extension id of the bookmark manager. |
| 343 extern const char kBookmarkManagerId[]; | 350 extern const char kBookmarkManagerId[]; |
| 344 | 351 |
| 345 // The extension id of the Web Store component application. | 352 // The extension id of the Web Store component application. |
| 346 extern const char kWebStoreAppId[]; | 353 extern const char kWebStoreAppId[]; |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 | 470 |
| 464 enum UnloadedExtensionReason { | 471 enum UnloadedExtensionReason { |
| 465 UNLOAD_REASON_DISABLE, // Extension is being disabled. | 472 UNLOAD_REASON_DISABLE, // Extension is being disabled. |
| 466 UNLOAD_REASON_UPDATE, // Extension is being updated to a newer version. | 473 UNLOAD_REASON_UPDATE, // Extension is being updated to a newer version. |
| 467 UNLOAD_REASON_UNINSTALL, // Extension is being uninstalled. | 474 UNLOAD_REASON_UNINSTALL, // Extension is being uninstalled. |
| 468 UNLOAD_REASON_TERMINATE, // Extension has terminated. | 475 UNLOAD_REASON_TERMINATE, // Extension has terminated. |
| 469 }; | 476 }; |
| 470 } // extension_misc | 477 } // extension_misc |
| 471 | 478 |
| 472 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 479 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |
| OLD | NEW |