Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(267)

Side by Side Diff: chrome/browser/extensions/extension_management_constants.h

Issue 2499493004: Communicate ExtensionSettings policy to renderers (Closed)
Patch Set: nits Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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;
30 31
31 extern const char kUpdateUrl[]; 32 extern const char kUpdateUrl[];
32 extern const char kInstallSources[]; 33 extern const char kInstallSources[];
33 extern const char kAllowedTypes[]; 34 extern const char kAllowedTypes[];
34 35
35 extern const char kMinimumVersionRequired[]; 36 extern const char kMinimumVersionRequired[];
36 37
37 extern const char kUpdateUrlPrefix[]; 38 extern const char kUpdateUrlPrefix[];
38 39
39 struct AllowedTypesMapEntry { 40 struct AllowedTypesMapEntry {
40 // Name of allowed types of extensions used in schema of extension 41 // Name of allowed types of extensions used in schema of extension
41 // management preference. 42 // management preference.
42 const char* name; 43 const char* name;
43 // The corresponding Manifest::Type. 44 // The corresponding Manifest::Type.
44 Manifest::Type manifest_type; 45 Manifest::Type manifest_type;
45 }; 46 };
46 47
47 extern const size_t kAllowedTypesMapSize; 48 extern const size_t kAllowedTypesMapSize;
48 extern const AllowedTypesMapEntry kAllowedTypesMap[]; 49 extern const AllowedTypesMapEntry kAllowedTypesMap[];
49 50
50 // Helper fuction over |kAllowedTypesMap|, returns Manifest::TYPE_UNKNOWN if 51 // Helper fuction over |kAllowedTypesMap|, returns Manifest::TYPE_UNKNOWN if
51 // not found. 52 // not found.
52 Manifest::Type GetManifestType(const std::string& name); 53 Manifest::Type GetManifestType(const std::string& name);
53 54
54 } // namespace schema_constants 55 } // namespace schema_constants
55 } // namespace extensions 56 } // namespace extensions
56 57
57 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_CONSTANTS_H_ 58 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698