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

Unified Diff: extensions/common/constants.h

Issue 19547009: Move ".crx"/".pem" constants and extension_filenames constants into extensions/common/constants.cc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/utility/extensions/unpacker_unittest.cc ('k') | extensions/common/constants.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/constants.h
diff --git a/extensions/common/constants.h b/extensions/common/constants.h
index aeb9e674acbd69840180aaaad1562e8ba7bb9dc3..bf4b9d4435cedd31d860bbeb26b26b73c0d66cae 100644
--- a/extensions/common/constants.h
+++ b/extensions/common/constants.h
@@ -12,6 +12,8 @@ namespace extensions {
// Scheme we serve extension content from.
extern const char kExtensionScheme[];
+namespace filenames {
+
// The name of the manifest inside an extension.
extern const base::FilePath::CharType kManifestFilename[];
@@ -28,6 +30,35 @@ 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[];
+
+// Returns true if the specified file is an extension.
+bool IsExtension(const base::FilePath& file_name);
Matt Perry 2013/07/18 23:01:52 This is not a constant. It doesn't feel like it be
Yoyo Zhou 2013/07/19 22:07:45 extension_constants.cc has a bunch of helper funct
+
+} // namespace filenames
+
} // namespace extensions
#endif // EXTENSIONS_COMMON_CONSTANTS_H_
« no previous file with comments | « chrome/utility/extensions/unpacker_unittest.cc ('k') | extensions/common/constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698