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

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

Issue 107803004: Add base:: to string16 in extensions/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove a using Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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 EXTENSIONS_BROWSER_ADMIN_POLICY_H_ 5 #ifndef EXTENSIONS_BROWSER_ADMIN_POLICY_H_
6 #define EXTENSIONS_BROWSER_ADMIN_POLICY_H_ 6 #define EXTENSIONS_BROWSER_ADMIN_POLICY_H_
7 7
8 #include "base/values.h" 8 #include "base/values.h"
9 9
10 namespace extensions { 10 namespace extensions {
11 11
12 class Extension; 12 class Extension;
13 13
14 // Functions for providing information about the extension whitelist, 14 // Functions for providing information about the extension whitelist,
15 // blacklist, and forcelist imposed by admin policy. 15 // blacklist, and forcelist imposed by admin policy.
16 namespace admin_policy { 16 namespace admin_policy {
17 17
18 // Checks if extensions are blacklisted by default, by policy. When true, this 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. 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). 20 // from the command line, or when loaded as an unpacked extension).
21 bool BlacklistedByDefault(const base::ListValue* blacklist); 21 bool BlacklistedByDefault(const base::ListValue* blacklist);
22 22
23 // Returns true if the extension is allowed by the admin policy. 23 // Returns true if the extension is allowed by the admin policy.
24 bool UserMayLoad(const base::ListValue* blacklist, 24 bool UserMayLoad(const base::ListValue* blacklist,
25 const base::ListValue* whitelist, 25 const base::ListValue* whitelist,
26 const base::DictionaryValue* forcelist, 26 const base::DictionaryValue* forcelist,
27 const base::ListValue* allowed_types, 27 const base::ListValue* allowed_types,
28 const Extension* extension, 28 const Extension* extension,
29 string16* error); 29 base::string16* error);
30 30
31 // Returns false if the extension is required to remain running. In practice 31 // Returns false if the extension is required to remain running. In practice
32 // this enforces the admin policy forcelist. 32 // this enforces the admin policy forcelist.
33 bool UserMayModifySettings(const Extension* extension, string16* error); 33 bool UserMayModifySettings(const Extension* extension, base::string16* error);
34 34
35 // Returns false if the extension is required to remain running. In practice 35 // Returns false if the extension is required to remain running. In practice
36 // this enforces the admin policy forcelist. 36 // this enforces the admin policy forcelist.
37 bool MustRemainEnabled(const Extension* extension, string16* error); 37 bool MustRemainEnabled(const Extension* extension, base::string16* error);
38 38
39 } // namespace 39 } // namespace
40 } // namespace 40 } // namespace
41 41
42 #endif // EXTENSIONS_BROWSER_ADMIN_POLICY_H_ 42 #endif // EXTENSIONS_BROWSER_ADMIN_POLICY_H_
OLDNEW
« no previous file with comments | « no previous file | extensions/browser/admin_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698