diff options
author | benwells@chromium.org <benwells@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-26 05:42:02 +0000 |
---|---|---|
committer | benwells@chromium.org <benwells@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-26 05:42:02 +0000 |
commit | 501105b44cf9ef702dcf7760e3d9fd8039fa48c2 (patch) | |
tree | 8c9c322c6bab3d9dcd18229a867959a832b07fa5 /extensions | |
parent | 20d2b74ccb40341d001ab30cd74ac320891dde5b (diff) | |
download | chromium_src-501105b44cf9ef702dcf7760e3d9fd8039fa48c2.zip chromium_src-501105b44cf9ef702dcf7760e3d9fd8039fa48c2.tar.gz chromium_src-501105b44cf9ef702dcf7760e3d9fd8039fa48c2.tar.bz2 |
Move constants from ExtensionService to extension_misc.
These constants don't need to be on ExtensionService and add to the
overwhelming nature of this module.
BUG=162530
Review URL: https://codereview.chromium.org/23905009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225349 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/common/constants.cc | 11 | ||||
-rw-r--r-- | extensions/common/constants.h | 31 |
2 files changed, 42 insertions, 0 deletions
diff --git a/extensions/common/constants.cc b/extensions/common/constants.cc index b739061..a332d70 100644 --- a/extensions/common/constants.cc +++ b/extensions/common/constants.cc @@ -37,4 +37,15 @@ const base::FilePath::CharType kExtensionFileExtension[] = const base::FilePath::CharType kExtensionKeyFileExtension[] = FILE_PATH_LITERAL(".pem"); +// If auto-updates are turned on, default to running every 5 hours. +const int kDefaultUpdateFrequencySeconds = 60 * 60 * 5; + +const char kLocalAppSettingsDirectoryName[] = "Local App Settings"; +const char kLocalExtensionSettingsDirectoryName[] = "Local Extension Settings"; +const char kSyncAppSettingsDirectoryName[] = "Sync App Settings"; +const char kSyncExtensionSettingsDirectoryName[] = "Sync Extension Settings"; +const char kManagedSettingsDirectoryName[] = "Managed Extension Settings"; +const char kStateStoreName[] = "Extension State"; +const char kRulesStoreName[] = "Extension Rules"; + } // namespace extensions diff --git a/extensions/common/constants.h b/extensions/common/constants.h index 648663d..3113a17 100644 --- a/extensions/common/constants.h +++ b/extensions/common/constants.h @@ -52,6 +52,37 @@ extern const base::FilePath::CharType kExtensionFileExtension[]; // The file extension (.pem) for private key files. extern const base::FilePath::CharType kExtensionKeyFileExtension[]; +// Default frequency for auto updates, if turned on. +extern const int kDefaultUpdateFrequencySeconds; + +// The name of the directory inside the profile where per-app local settings +// are stored. +extern const char kLocalAppSettingsDirectoryName[]; + +// The name of the directory inside the profile where per-extension local +// settings are stored. +extern const char kLocalExtensionSettingsDirectoryName[]; + +// The name of the directory inside the profile where per-app synced settings +// are stored. +extern const char kSyncAppSettingsDirectoryName[]; + +// The name of the directory inside the profile where per-extension synced +// settings are stored. +extern const char kSyncExtensionSettingsDirectoryName[]; + +// The name of the directory inside the profile where per-extension persistent +// managed settings are stored. +extern const char kManagedSettingsDirectoryName[]; + +// The name of the database inside the profile where chrome-internal +// extension state resides. +extern const char kStateStoreName[]; + +// The name of the database inside the profile where declarative extension +// rules are stored. +extern const char kRulesStoreName[]; + } // namespace extensions #endif // EXTENSIONS_COMMON_CONSTANTS_H_ |