app_list: Re-enable people search.
[chromium-blink-merge.git] / chrome / browser / extensions / extension_management_constants.h
blob2a552dd339944360b13ee27f8eb56061b3899dc0
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_
8 #include <string>
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 kBlockedPermissions[];
24 extern const char kAllowedPermissions[];
26 extern const char kUpdateUrl[];
27 extern const char kInstallSources[];
28 extern const char kAllowedTypes[];
30 extern const char kMinimumVersionRequired[];
32 extern const char kUpdateUrlPrefix[];
34 struct AllowedTypesMapEntry {
35 // Name of allowed types of extensions used in schema of extension
36 // management preference.
37 const char* name;
38 // The corresponding Manifest::Type.
39 Manifest::Type manifest_type;
42 extern const size_t kAllowedTypesMapSize;
43 extern const AllowedTypesMapEntry kAllowedTypesMap[];
45 // Helper fuction over |kAllowedTypesMap|, returns Manifest::TYPE_UNKNOWN if
46 // not found.
47 Manifest::Type GetManifestType(const std::string& name);
49 } // namespace schema_constants
50 } // namespace extensions
52 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_CONSTANTS_H_