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

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

Issue 559603002: Add new ExtensionManagement preference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 years, 3 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
(Empty)
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.
4
5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_CONSTANTS_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_CONSTANTS_H_
7
8 #include "extensions/common/manifest.h"
9
10 namespace extensions {
11 namespace schema_constants {
12
13 extern const char kWildcard[];
14
15 extern const char kInstallationMode[];
16 extern const char kAllowed[];
17 extern const char kBlocked[];
18 extern const char kForceInstalled[];
19 extern const char kNormalInstalled[];
20
21 extern const char kUpdateUrl[];
22 extern const char kInstallSources[];
23 extern const char kAllowedTypes[];
24
25 extern const char kUpdateUrlPrefix[];
26
27 struct AllowedTypesMapEntry {
28 // Name of allowed types of extensions used in schema of extension
29 // management preference.
30 const char* name;
31 // The corresponding Manifest::Type.
32 Manifest::Type manifest_type;
33 };
34
35 extern const size_t kAllowedTypesMapSize;
36 extern const AllowedTypesMapEntry kAllowedTypesMap[];
37
38 // Helper fuction over |kAllowedTypesMap|, returns Manifest::TYPE_UNKNOWN if
39 // not found.
40 Manifest::Type GetManifestType(const std::string& name);
Joao da Silva 2014/09/19 07:27:26 #include <string>
binjin 2014/09/19 10:06:08 Done.
41
42 } // namespace schema_constants
43 } // namespace extensions
44
45 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698