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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/utility/extensions/unpacker_unittest.cc ('k') | extensions/common/constants.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 EXTENSIONS_COMMON_CONSTANTS_H_ 5 #ifndef EXTENSIONS_COMMON_CONSTANTS_H_
6 #define EXTENSIONS_COMMON_CONSTANTS_H_ 6 #define EXTENSIONS_COMMON_CONSTANTS_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 9
10 namespace extensions { 10 namespace extensions {
11 11
12 // Scheme we serve extension content from. 12 // Scheme we serve extension content from.
13 extern const char kExtensionScheme[]; 13 extern const char kExtensionScheme[];
14 14
15 namespace filenames {
16
15 // The name of the manifest inside an extension. 17 // The name of the manifest inside an extension.
16 extern const base::FilePath::CharType kManifestFilename[]; 18 extern const base::FilePath::CharType kManifestFilename[];
17 19
18 // The name of locale folder inside an extension. 20 // The name of locale folder inside an extension.
19 extern const base::FilePath::CharType kLocaleFolder[]; 21 extern const base::FilePath::CharType kLocaleFolder[];
20 22
21 // The name of the messages file inside an extension. 23 // The name of the messages file inside an extension.
22 extern const base::FilePath::CharType kMessagesFilename[]; 24 extern const base::FilePath::CharType kMessagesFilename[];
23 25
24 // The base directory for subdirectories with platform-specific code. 26 // The base directory for subdirectories with platform-specific code.
25 extern const base::FilePath::CharType kPlatformSpecificFolder[]; 27 extern const base::FilePath::CharType kPlatformSpecificFolder[];
26 28
27 // The name of the directory inside the profile where extensions are 29 // The name of the directory inside the profile where extensions are
28 // installed to. 30 // installed to.
29 extern const char kInstallDirectoryName[]; 31 extern const char kInstallDirectoryName[];
30 32
33 // The name of a temporary directory to install an extension into for
34 // validation before finalizing install.
35 extern const char kTempExtensionName[];
36
37 // The file to write our decoded images to, relative to the extension_path.
38 extern const char kDecodedImagesFilename[];
39
40 // The file to write our decoded message catalogs to, relative to the
41 // extension_path.
42 extern const char kDecodedMessageCatalogsFilename[];
43
44 // The filename to use for a background page generated from
45 // background.scripts.
46 extern const char kGeneratedBackgroundPageFilename[];
47
48 // Path to imported modules.
49 extern const char kModulesDir[];
50
51 // The file extension (.crx) for extensions.
52 extern const base::FilePath::CharType kExtensionFileExtension[];
53
54 // The file extension (.pem) for private key files.
55 extern const base::FilePath::CharType kExtensionKeyFileExtension[];
56
57 // Returns true if the specified file is an extension.
58 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
59
60 } // namespace filenames
61
31 } // namespace extensions 62 } // namespace extensions
32 63
33 #endif // EXTENSIONS_COMMON_CONSTANTS_H_ 64 #endif // EXTENSIONS_COMMON_CONSTANTS_H_
OLDNEW
« 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