1 // Copyright 2014 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.
5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_CONSTANTS_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_CONSTANTS_H_
10 #include "extensions/common/manifest.h"
12 namespace extensions {
13 namespace schema_constants {
15 extern const char kWildcard[];
17 extern const char kInstallationMode[];
18 extern const char kAllowed[];
19 extern const char kBlocked[];
20 extern const char kForceInstalled[];
21 extern const char kNormalInstalled[];
23 extern const char kUpdateUrl[];
24 extern const char kInstallSources[];
25 extern const char kAllowedTypes[];
27 extern const char kUpdateUrlPrefix[];
29 struct AllowedTypesMapEntry {
30 // Name of allowed types of extensions used in schema of extension
31 // management preference.
33 // The corresponding Manifest::Type.
34 Manifest::Type manifest_type;
37 extern const size_t kAllowedTypesMapSize;
38 extern const AllowedTypesMapEntry kAllowedTypesMap[];
40 // Helper fuction over |kAllowedTypesMap|, returns Manifest::TYPE_UNKNOWN if
42 Manifest::Type GetManifestType(const std::string& name);
44 } // namespace schema_constants
45 } // namespace extensions
47 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_CONSTANTS_H_