diff options
author | yoz@chromium.org <yoz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-23 23:17:02 +0000 |
---|---|---|
committer | yoz@chromium.org <yoz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-23 23:17:02 +0000 |
commit | b22c8af6b13fb76a84cc61c714e699fbbb7d2918 (patch) | |
tree | 28a814cd6e4f3788e1e75b969fe03679ffb5ecbd /extensions | |
parent | 2a64b0a6ad0151f13439d1965973e4362014a401 (diff) | |
download | chromium_src-b22c8af6b13fb76a84cc61c714e699fbbb7d2918.zip chromium_src-b22c8af6b13fb76a84cc61c714e699fbbb7d2918.tar.gz chromium_src-b22c8af6b13fb76a84cc61c714e699fbbb7d2918.tar.bz2 |
Move ".crx"/".pem" constants and extension_filenames constants into extensions/common/constants.cc.
Continuation of cleanup of chrome/ includes in extension.cc.
BUG=162530
Review URL: https://chromiumcodereview.appspot.com/19547009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213260 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/common/constants.cc | 20 | ||||
-rw-r--r-- | extensions/common/constants.h | 24 |
2 files changed, 43 insertions, 1 deletions
diff --git a/extensions/common/constants.cc b/extensions/common/constants.cc index f84386a..b739061 100644 --- a/extensions/common/constants.cc +++ b/extensions/common/constants.cc @@ -4,6 +4,8 @@ #include "extensions/common/constants.h" +#include "base/files/file_path.h" + namespace extensions { const char kExtensionScheme[] = "chrome-extension"; @@ -19,4 +21,20 @@ const base::FilePath::CharType kPlatformSpecificFolder[] = const char kInstallDirectoryName[] = "Extensions"; -} // namespace extensions +const char kTempExtensionName[] = "CRX_INSTALL"; + +const char kDecodedImagesFilename[] = "DECODED_IMAGES"; + +const char kDecodedMessageCatalogsFilename[] = "DECODED_MESSAGE_CATALOGS"; + +const char kGeneratedBackgroundPageFilename[] = + "_generated_background_page.html"; + +const char kModulesDir[] = "_modules"; + +const base::FilePath::CharType kExtensionFileExtension[] = + FILE_PATH_LITERAL(".crx"); +const base::FilePath::CharType kExtensionKeyFileExtension[] = + FILE_PATH_LITERAL(".pem"); + +} // namespace extensions diff --git a/extensions/common/constants.h b/extensions/common/constants.h index aeb9e67..492ddbc 100644 --- a/extensions/common/constants.h +++ b/extensions/common/constants.h @@ -28,6 +28,30 @@ extern const base::FilePath::CharType kPlatformSpecificFolder[]; // installed to. extern const char kInstallDirectoryName[]; +// The name of a temporary directory to install an extension into for +// validation before finalizing install. +extern const char kTempExtensionName[]; + +// The file to write our decoded images to, relative to the extension_path. +extern const char kDecodedImagesFilename[]; + +// The file to write our decoded message catalogs to, relative to the +// extension_path. +extern const char kDecodedMessageCatalogsFilename[]; + +// The filename to use for a background page generated from +// background.scripts. +extern const char kGeneratedBackgroundPageFilename[]; + +// Path to imported modules. +extern const char kModulesDir[]; + +// The file extension (.crx) for extensions. +extern const base::FilePath::CharType kExtensionFileExtension[]; + +// The file extension (.pem) for private key files. +extern const base::FilePath::CharType kExtensionKeyFileExtension[]; + } // namespace extensions #endif // EXTENSIONS_COMMON_CONSTANTS_H_ |