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