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 3 // found in the LICENSE file. 4 5 #ifndef EXTENSIONS_COMMON_CONSTANTS_H_ 6 #define EXTENSIONS_COMMON_CONSTANTS_H_ 7 8 #include "base/files/file_path.h" 9 10 namespace extensions { 11 12 // Scheme we serve extension content from. 13 extern const char kExtensionScheme[]; 14 15 // The name of the manifest inside an extension. 16 extern const base::FilePath::CharType kManifestFilename[]; 17 18 // The name of locale folder inside an extension. 19 extern const base::FilePath::CharType kLocaleFolder[]; 20 21 // The name of the messages file inside an extension. 22 extern const base::FilePath::CharType kMessagesFilename[]; 23 24 // The base directory for subdirectories with platform-specific code. 25 extern const base::FilePath::CharType kPlatformSpecificFolder[]; 26 27 // The name of the directory inside the profile where extensions are 28 // installed to. 29 extern const char kInstallDirectoryName[]; 30 31 // The name of a temporary directory to install an extension into for 32 // validation before finalizing install. 33 extern const char kTempExtensionName[]; 34 35 // The file to write our decoded images to, relative to the extension_path. 36 extern const char kDecodedImagesFilename[]; 37 38 // The file to write our decoded message catalogs to, relative to the 39 // extension_path. 40 extern const char kDecodedMessageCatalogsFilename[]; 41 42 // The filename to use for a background page generated from 43 // background.scripts. 44 extern const char kGeneratedBackgroundPageFilename[]; 45 46 // Path to imported modules. 47 extern const char kModulesDir[]; 48 49 // The file extension (.crx) for extensions. 50 extern const base::FilePath::CharType kExtensionFileExtension[]; 51 52 // The file extension (.pem) for private key files. 53 extern const base::FilePath::CharType kExtensionKeyFileExtension[]; 54 55 // Default frequency for auto updates, if turned on. 56 extern const int kDefaultUpdateFrequencySeconds; 57 58 // The name of the directory inside the profile where per-app local settings 59 // are stored. 60 extern const char kLocalAppSettingsDirectoryName[]; 61 62 // The name of the directory inside the profile where per-extension local 63 // settings are stored. 64 extern const char kLocalExtensionSettingsDirectoryName[]; 65 66 // The name of the directory inside the profile where per-app synced settings 67 // are stored. 68 extern const char kSyncAppSettingsDirectoryName[]; 69 70 // The name of the directory inside the profile where per-extension synced 71 // settings are stored. 72 extern const char kSyncExtensionSettingsDirectoryName[]; 73 74 // The name of the directory inside the profile where per-extension persistent 75 // managed settings are stored. 76 extern const char kManagedSettingsDirectoryName[]; 77 78 // The name of the database inside the profile where chrome-internal 79 // extension state resides. 80 extern const char kStateStoreName[]; 81 82 // The name of the database inside the profile where declarative extension 83 // rules are stored. 84 extern const char kRulesStoreName[]; 85 86 } // namespace extensions 87 88 #endif // EXTENSIONS_COMMON_CONSTANTS_H_ 89