| 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_CHROMEOS_SETTINGS_INSTALL_ATTRIBUTES_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_SETTINGS_INSTALL_ATTRIBUTES_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_INSTALL_ATTRIBUTES_H_ | 6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_INSTALL_ATTRIBUTES_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // be called after the lock has already been taken, in which case it checks | 67 // be called after the lock has already been taken, in which case it checks |
| 68 // that the passed parameters fully agree with the locked attributes. | 68 // that the passed parameters fully agree with the locked attributes. |
| 69 // |callback| must not be null and is called with the result. Must not be | 69 // |callback| must not be null and is called with the result. Must not be |
| 70 // called while a previous LockDevice() invocation is still pending. | 70 // called while a previous LockDevice() invocation is still pending. |
| 71 void LockDevice(policy::DeviceMode device_mode, | 71 void LockDevice(policy::DeviceMode device_mode, |
| 72 const std::string& domain, | 72 const std::string& domain, |
| 73 const std::string& realm, | 73 const std::string& realm, |
| 74 const std::string& device_id, | 74 const std::string& device_id, |
| 75 const LockResultCallback& callback); | 75 const LockResultCallback& callback); |
| 76 | 76 |
| 77 // Checks whether this is an enterprise device. | 77 // Checks whether this devices is under any kind of enterprise management. |
| 78 bool IsEnterpriseDevice() const; | 78 bool IsEnterpriseManaged() const; |
| 79 |
| 80 // Checks whether this is a cloud managed enterprise device. |
| 81 bool IsCloudManaged() const; |
| 82 |
| 83 // Checks whether this is an Active Directory managed enterprise device. |
| 84 bool IsActiveDirectoryManaged() const; |
| 79 | 85 |
| 80 // Checks whether this is a consumer kiosk enabled device. | 86 // Checks whether this is a consumer kiosk enabled device. |
| 81 bool IsConsumerKioskDeviceWithAutoLaunch(); | 87 bool IsConsumerKioskDeviceWithAutoLaunch(); |
| 82 | 88 |
| 83 // Return the mode the device was enrolled to. The return value for devices | 89 // Return the mode the device was enrolled to. The return value for devices |
| 84 // that are not locked yet is DEVICE_MODE_UNKNOWN. | 90 // that are not locked yet is DEVICE_MODE_UNKNOWN. |
| 85 policy::DeviceMode GetMode() const { return registration_mode_; } | 91 policy::DeviceMode GetMode() const { return registration_mode_; } |
| 86 | 92 |
| 87 // Return the domain this device belongs to or an empty string if the device | 93 // Return the domain this device belongs to or an empty string if the device |
| 88 // is not a cloud-managed enterprise device. | 94 // is not a cloud-managed enterprise device. |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 CryptohomeClient* cryptohome_client_; | 200 CryptohomeClient* cryptohome_client_; |
| 195 | 201 |
| 196 base::WeakPtrFactory<InstallAttributes> weak_ptr_factory_; | 202 base::WeakPtrFactory<InstallAttributes> weak_ptr_factory_; |
| 197 | 203 |
| 198 DISALLOW_COPY_AND_ASSIGN(InstallAttributes); | 204 DISALLOW_COPY_AND_ASSIGN(InstallAttributes); |
| 199 }; | 205 }; |
| 200 | 206 |
| 201 } // namespace chromeos | 207 } // namespace chromeos |
| 202 | 208 |
| 203 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_INSTALL_ATTRIBUTES_H_ | 209 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_INSTALL_ATTRIBUTES_H_ |
| OLD | NEW |