OLD | NEW |
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_TEST_MANAGEMENT_POLICY_H_ | 5 #ifndef EXTENSIONS_BROWSER_TEST_MANAGEMENT_POLICY_H_ |
6 #define EXTENSIONS_BROWSER_TEST_MANAGEMENT_POLICY_H_ | 6 #define EXTENSIONS_BROWSER_TEST_MANAGEMENT_POLICY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 TestManagementPolicyProvider(); | 31 TestManagementPolicyProvider(); |
32 explicit TestManagementPolicyProvider(int prohibited_actions); | 32 explicit TestManagementPolicyProvider(int prohibited_actions); |
33 | 33 |
34 void SetProhibitedActions(int prohibited_actions); | 34 void SetProhibitedActions(int prohibited_actions); |
35 void SetDisableReason(Extension::DisableReason reason); | 35 void SetDisableReason(Extension::DisableReason reason); |
36 | 36 |
37 virtual std::string GetDebugPolicyProviderName() const OVERRIDE; | 37 virtual std::string GetDebugPolicyProviderName() const OVERRIDE; |
38 | 38 |
39 virtual bool UserMayLoad(const Extension* extension, | 39 virtual bool UserMayLoad(const Extension* extension, |
| 40 int install_flags, |
40 base::string16* error) const OVERRIDE; | 41 base::string16* error) const OVERRIDE; |
41 | 42 |
42 virtual bool UserMayModifySettings(const Extension* extension, | 43 virtual bool UserMayModifySettings(const Extension* extension, |
43 base::string16* error) const OVERRIDE; | 44 base::string16* error) const OVERRIDE; |
44 | 45 |
45 virtual bool MustRemainEnabled(const Extension* extension, | 46 virtual bool MustRemainEnabled(const Extension* extension, |
46 base::string16* error) const OVERRIDE; | 47 base::string16* error) const OVERRIDE; |
47 | 48 |
48 virtual bool MustRemainDisabled(const Extension* extension, | 49 virtual bool MustRemainDisabled(const Extension* extension, |
49 Extension::DisableReason* reason, | 50 Extension::DisableReason* reason, |
50 base::string16* error) const OVERRIDE; | 51 base::string16* error) const OVERRIDE; |
51 | 52 |
52 private: | 53 private: |
53 bool may_load_; | 54 bool may_load_; |
54 bool may_modify_status_; | 55 bool may_modify_status_; |
55 bool must_remain_enabled_; | 56 bool must_remain_enabled_; |
56 bool must_remain_disabled_; | 57 bool must_remain_disabled_; |
57 Extension::DisableReason disable_reason_; | 58 Extension::DisableReason disable_reason_; |
58 | 59 |
59 base::string16 error_message_; | 60 base::string16 error_message_; |
60 }; | 61 }; |
61 | 62 |
62 } // namespace extensions | 63 } // namespace extensions |
63 | 64 |
64 #endif // EXTENSIONS_BROWSER_TEST_MANAGEMENT_POLICY_H_ | 65 #endif // EXTENSIONS_BROWSER_TEST_MANAGEMENT_POLICY_H_ |
OLD | NEW |