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

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

Issue 595363002: Add policy controlled permission block list for extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ext-fix
Patch Set: fix memory leaks Created 6 years, 1 month 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 <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[];
24 extern const char kAllowedPermissions[];
25
23 extern const char kUpdateUrl[]; 26 extern const char kUpdateUrl[];
24 extern const char kInstallSources[]; 27 extern const char kInstallSources[];
25 extern const char kAllowedTypes[]; 28 extern const char kAllowedTypes[];
26 29
27 extern const char kUpdateUrlPrefix[]; 30 extern const char kUpdateUrlPrefix[];
28 31
29 struct AllowedTypesMapEntry { 32 struct AllowedTypesMapEntry {
30 // Name of allowed types of extensions used in schema of extension 33 // Name of allowed types of extensions used in schema of extension
31 // management preference. 34 // management preference.
32 const char* name; 35 const char* name;
33 // The corresponding Manifest::Type. 36 // The corresponding Manifest::Type.
34 Manifest::Type manifest_type; 37 Manifest::Type manifest_type;
35 }; 38 };
36 39
37 extern const size_t kAllowedTypesMapSize; 40 extern const size_t kAllowedTypesMapSize;
38 extern const AllowedTypesMapEntry kAllowedTypesMap[]; 41 extern const AllowedTypesMapEntry kAllowedTypesMap[];
39 42
40 // Helper fuction over |kAllowedTypesMap|, returns Manifest::TYPE_UNKNOWN if 43 // Helper fuction over |kAllowedTypesMap|, returns Manifest::TYPE_UNKNOWN if
41 // not found. 44 // not found.
42 Manifest::Type GetManifestType(const std::string& name); 45 Manifest::Type GetManifestType(const std::string& name);
43 46
44 } // namespace schema_constants 47 } // namespace schema_constants
45 } // namespace extensions 48 } // namespace extensions
46 49
47 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_CONSTANTS_H_ 50 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_CONSTANTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_management.cc ('k') | chrome/browser/extensions/extension_management_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698