Home | History | Annotate | Download | only in common
      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 #include "extensions/common/constants.h"
      6 
      7 #include "base/files/file_path.h"
      8 
      9 namespace extensions {
     10 
     11 const char kExtensionScheme[] = "chrome-extension";
     12 
     13 const base::FilePath::CharType kManifestFilename[] =
     14     FILE_PATH_LITERAL("manifest.json");
     15 const base::FilePath::CharType kLocaleFolder[] =
     16     FILE_PATH_LITERAL("_locales");
     17 const base::FilePath::CharType kMessagesFilename[] =
     18     FILE_PATH_LITERAL("messages.json");
     19 const base::FilePath::CharType kPlatformSpecificFolder[] =
     20     FILE_PATH_LITERAL("_platform_specific");
     21 
     22 const char kInstallDirectoryName[] = "Extensions";
     23 
     24 const char kTempExtensionName[] = "CRX_INSTALL";
     25 
     26 const char kDecodedImagesFilename[] = "DECODED_IMAGES";
     27 
     28 const char kDecodedMessageCatalogsFilename[] = "DECODED_MESSAGE_CATALOGS";
     29 
     30 const char kGeneratedBackgroundPageFilename[] =
     31     "_generated_background_page.html";
     32 
     33 const char kModulesDir[] = "_modules";
     34 
     35 const base::FilePath::CharType kExtensionFileExtension[] =
     36     FILE_PATH_LITERAL(".crx");
     37 const base::FilePath::CharType kExtensionKeyFileExtension[] =
     38     FILE_PATH_LITERAL(".pem");
     39 
     40 // If auto-updates are turned on, default to running every 5 hours.
     41 const int kDefaultUpdateFrequencySeconds = 60 * 60 * 5;
     42 
     43 const char kLocalAppSettingsDirectoryName[] = "Local App Settings";
     44 const char kLocalExtensionSettingsDirectoryName[] = "Local Extension Settings";
     45 const char kSyncAppSettingsDirectoryName[] = "Sync App Settings";
     46 const char kSyncExtensionSettingsDirectoryName[] = "Sync Extension Settings";
     47 const char kManagedSettingsDirectoryName[] = "Managed Extension Settings";
     48 const char kStateStoreName[] = "Extension State";
     49 const char kRulesStoreName[] = "Extension Rules";
     50 
     51 }  // namespace extensions
     52