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

Side by Side Diff: extensions/browser/admin_policy.h

Issue 500043003: Add PolicyProvider to ExtensionManagement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ext-1
Patch Set: rebase again 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
« no previous file with comments | « extensions/browser/BUILD.gn ('k') | extensions/browser/admin_policy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2013 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 EXTENSIONS_BROWSER_ADMIN_POLICY_H_
6 #define EXTENSIONS_BROWSER_ADMIN_POLICY_H_
7
8 #include "base/values.h"
9
10 namespace extensions {
11
12 class Extension;
13
14 // Functions for providing information about the extension whitelist,
15 // blacklist, and forcelist imposed by admin policy.
16 namespace admin_policy {
17
18 // Checks if extensions are blacklisted by default, by policy. When true, this
19 // means that even extensions without an ID should be blacklisted (e.g.
20 // from the command line, or when loaded as an unpacked extension).
21 bool BlacklistedByDefault(const base::ListValue* blacklist);
22
23 // Returns true if the extension is allowed by the admin policy.
24 bool UserMayLoad(const base::ListValue* blacklist,
25 const base::ListValue* whitelist,
26 const base::DictionaryValue* forcelist,
27 const base::ListValue* allowed_types,
28 const Extension* extension,
29 base::string16* error);
30
31 // Returns false if the extension is required to remain running. In practice
32 // this enforces the admin policy forcelist.
33 bool UserMayModifySettings(const Extension* extension, base::string16* error);
34
35 // Returns false if the extension is required to remain running. In practice
36 // this enforces the admin policy forcelist.
37 bool MustRemainEnabled(const Extension* extension, base::string16* error);
38
39 } // namespace admin_policy
40 } // namespace extensions
41
42 #endif // EXTENSIONS_BROWSER_ADMIN_POLICY_H_
OLDNEW
« no previous file with comments | « extensions/browser/BUILD.gn ('k') | extensions/browser/admin_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698