| 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_TEST_MANAGEMENT_POLICY_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_TEST_MANAGEMENT_POLICY_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_TEST_MANAGEMENT_POLICY_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_TEST_MANAGEMENT_POLICY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/string16.h" | 10 #include "base/strings/string16.h" |
| 11 #include "chrome/browser/extensions/extension_service.h" | 11 #include "chrome/browser/extensions/extension_service.h" |
| 12 #include "chrome/browser/extensions/management_policy.h" | 12 #include "chrome/browser/extensions/management_policy.h" |
| 13 | 13 |
| 14 namespace extensions { | 14 namespace extensions { |
| 15 // This class provides a simple way to create providers with specific | 15 // This class provides a simple way to create providers with specific |
| 16 // restrictions and a known error message, for use in testing. | 16 // restrictions and a known error message, for use in testing. |
| 17 class TestManagementPolicyProvider : public ManagementPolicy::Provider { | 17 class TestManagementPolicyProvider : public ManagementPolicy::Provider { |
| 18 public: | 18 public: |
| 19 enum AllowedActionFlag { | 19 enum AllowedActionFlag { |
| 20 ALLOW_ALL = 0, | 20 ALLOW_ALL = 0, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 bool may_load_; | 47 bool may_load_; |
| 48 bool may_modify_status_; | 48 bool may_modify_status_; |
| 49 bool must_remain_enabled_; | 49 bool must_remain_enabled_; |
| 50 | 50 |
| 51 string16 error_message_; | 51 string16 error_message_; |
| 52 }; | 52 }; |
| 53 } // namespace | 53 } // namespace |
| 54 #endif // CHROME_BROWSER_EXTENSIONS_TEST_MANAGEMENT_POLICY_H_ | 54 #endif // CHROME_BROWSER_EXTENSIONS_TEST_MANAGEMENT_POLICY_H_ |
| OLD | NEW |