OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_DEVICE_LOCAL_ACCOUNT_MANAGEMENT_POLIC
Y_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_DEVICE_LOCAL_ACCOUNT_MANAGEMENT_POLIC
Y_PROVIDER_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" |
| 10 #include "chrome/browser/extensions/management_policy.h" |
| 11 |
| 12 namespace chromeos { |
| 13 |
| 14 // A managed policy for device-local accounts that ensures only extensions whose |
| 15 // type or ID has been whitelisted for use in device-local accounts can be |
| 16 // installed. |
| 17 class DeviceLocalAccountManagementPolicyProvider |
| 18 : public extensions::ManagementPolicy::Provider { |
| 19 public: |
| 20 DeviceLocalAccountManagementPolicyProvider(); |
| 21 virtual ~DeviceLocalAccountManagementPolicyProvider(); |
| 22 |
| 23 // extensions::ManagementPolicy::Provider: |
| 24 virtual std::string GetDebugPolicyProviderName() const OVERRIDE; |
| 25 virtual bool UserMayLoad(const extensions::Extension* extension, |
| 26 string16* error) const OVERRIDE; |
| 27 |
| 28 private: |
| 29 DISALLOW_COPY_AND_ASSIGN(DeviceLocalAccountManagementPolicyProvider); |
| 30 }; |
| 31 |
| 32 } // namespace chromeos |
| 33 |
| 34 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_DEVICE_LOCAL_ACCOUNT_MANAGEMENT_PO
LICY_PROVIDER_H_ |
OLD | NEW |