OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_ADMIN_POLICY_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_ADMIN_POLICY_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_ADMIN_POLICY_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_ADMIN_POLICY_H_ |
7 #pragma once | |
8 | 7 |
9 #include "base/values.h" | 8 #include "base/values.h" |
10 #include "chrome/common/extensions/extension.h" | 9 #include "chrome/common/extensions/extension.h" |
11 | 10 |
12 namespace extensions { | 11 namespace extensions { |
13 class Extension; | 12 class Extension; |
14 } | 13 } |
15 | 14 |
16 // Functions for providing information about the extension whitelist, | 15 // Functions for providing information about the extension whitelist, |
17 // blacklist, and forcelist imposed by admin policy. | 16 // blacklist, and forcelist imposed by admin policy. |
(...skipping 17 matching lines...) Expand all Loading... |
35 bool UserMayModifySettings(const Extension* extension, string16* error); | 34 bool UserMayModifySettings(const Extension* extension, string16* error); |
36 | 35 |
37 // Returns false if the extension is required to remain running. In practice | 36 // Returns false if the extension is required to remain running. In practice |
38 // this enforces the admin policy forcelist. | 37 // this enforces the admin policy forcelist. |
39 bool MustRemainEnabled(const Extension* extension, string16* error); | 38 bool MustRemainEnabled(const Extension* extension, string16* error); |
40 | 39 |
41 } // namespace | 40 } // namespace |
42 } // namespace | 41 } // namespace |
43 | 42 |
44 #endif // CHROME_BROWSER_EXTENSIONS_ADMIN_POLICY_H_ | 43 #endif // CHROME_BROWSER_EXTENSIONS_ADMIN_POLICY_H_ |
OLD | NEW |