OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_CONSTANTS_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_CONSTANTS_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_CONSTANTS_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_CONSTANTS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "extensions/common/manifest.h" | 10 #include "extensions/common/manifest.h" |
11 | 11 |
12 namespace extensions { | 12 namespace extensions { |
13 namespace schema_constants { | 13 namespace schema_constants { |
14 | 14 |
15 extern const char kWildcard[]; | 15 extern const char kWildcard[]; |
16 | 16 |
17 extern const char kInstallationMode[]; | 17 extern const char kInstallationMode[]; |
18 extern const char kAllowed[]; | 18 extern const char kAllowed[]; |
19 extern const char kBlocked[]; | 19 extern const char kBlocked[]; |
20 extern const char kForceInstalled[]; | 20 extern const char kForceInstalled[]; |
21 extern const char kNormalInstalled[]; | 21 extern const char kNormalInstalled[]; |
22 | 22 |
23 extern const char kBlockedPermissions[]; | 23 extern const char kBlockedPermissions[]; |
24 extern const char kAllowedPermissions[]; | 24 extern const char kAllowedPermissions[]; |
25 | 25 |
26 extern const char kUpdateUrl[]; | 26 extern const char kUpdateUrl[]; |
27 extern const char kInstallSources[]; | 27 extern const char kInstallSources[]; |
28 extern const char kAllowedTypes[]; | 28 extern const char kAllowedTypes[]; |
29 | 29 |
| 30 extern const char kMinimumVersion[]; |
| 31 |
30 extern const char kUpdateUrlPrefix[]; | 32 extern const char kUpdateUrlPrefix[]; |
31 | 33 |
32 struct AllowedTypesMapEntry { | 34 struct AllowedTypesMapEntry { |
33 // Name of allowed types of extensions used in schema of extension | 35 // Name of allowed types of extensions used in schema of extension |
34 // management preference. | 36 // management preference. |
35 const char* name; | 37 const char* name; |
36 // The corresponding Manifest::Type. | 38 // The corresponding Manifest::Type. |
37 Manifest::Type manifest_type; | 39 Manifest::Type manifest_type; |
38 }; | 40 }; |
39 | 41 |
40 extern const size_t kAllowedTypesMapSize; | 42 extern const size_t kAllowedTypesMapSize; |
41 extern const AllowedTypesMapEntry kAllowedTypesMap[]; | 43 extern const AllowedTypesMapEntry kAllowedTypesMap[]; |
42 | 44 |
43 // Helper fuction over |kAllowedTypesMap|, returns Manifest::TYPE_UNKNOWN if | 45 // Helper fuction over |kAllowedTypesMap|, returns Manifest::TYPE_UNKNOWN if |
44 // not found. | 46 // not found. |
45 Manifest::Type GetManifestType(const std::string& name); | 47 Manifest::Type GetManifestType(const std::string& name); |
46 | 48 |
47 } // namespace schema_constants | 49 } // namespace schema_constants |
48 } // namespace extensions | 50 } // namespace extensions |
49 | 51 |
50 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_CONSTANTS_H_ | 52 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_CONSTANTS_H_ |
OLD | NEW |