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_MANAGEMENT_POLICY_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_MANAGEMENT_POLICY_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_MANAGEMENT_POLICY_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_MANAGEMENT_POLICY_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "chrome/common/extensions/extension.h" | 12 #include "extensions/common/extension.h" |
13 | 13 |
14 namespace extensions { | 14 namespace extensions { |
15 | 15 |
16 // This class registers providers that want to prohibit certain actions from | 16 // This class registers providers that want to prohibit certain actions from |
17 // being applied to extensions. It must be called, via the ExtensionService, | 17 // being applied to extensions. It must be called, via the ExtensionService, |
18 // before allowing a user or a user-level mechanism to perform the respective | 18 // before allowing a user or a user-level mechanism to perform the respective |
19 // action. (That is, installing or otherwise modifying an extension in order | 19 // action. (That is, installing or otherwise modifying an extension in order |
20 // to conform to enterprise administrator policy must be exempted from these | 20 // to conform to enterprise administrator policy must be exempted from these |
21 // checks.) | 21 // checks.) |
22 // | 22 // |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 string16* error) const; | 132 string16* error) const; |
133 | 133 |
134 ProviderList providers_; | 134 ProviderList providers_; |
135 | 135 |
136 DISALLOW_COPY_AND_ASSIGN(ManagementPolicy); | 136 DISALLOW_COPY_AND_ASSIGN(ManagementPolicy); |
137 }; | 137 }; |
138 | 138 |
139 } // namespace extensions | 139 } // namespace extensions |
140 | 140 |
141 #endif // CHROME_BROWSER_EXTENSIONS_MANAGEMENT_POLICY_H_ | 141 #endif // CHROME_BROWSER_EXTENSIONS_MANAGEMENT_POLICY_H_ |
OLD | NEW |