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_POLICY_ENTERPRISE_INSTALL_ATTRIBUTES_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_ENTERPRISE_INSTALL_ATTRIBUTES_H_ |
6 #define CHROME_BROWSER_CHROMEOS_POLICY_ENTERPRISE_INSTALL_ATTRIBUTES_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_ENTERPRISE_INSTALL_ATTRIBUTES_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 // This can also be called after the lock has already been taken, in which | 68 // This can also be called after the lock has already been taken, in which |
69 // case it checks that the passed user agrees with the locked attribute. | 69 // case it checks that the passed user agrees with the locked attribute. |
70 // |callback| must not be null and is called with the result. Must not be | 70 // |callback| must not be null and is called with the result. Must not be |
71 // called while a previous LockDevice() invocation is still pending. | 71 // called while a previous LockDevice() invocation is still pending. |
72 void LockDevice(const std::string& user, | 72 void LockDevice(const std::string& user, |
73 DeviceMode device_mode, | 73 DeviceMode device_mode, |
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 is an enterprise device. |
78 bool IsEnterpriseDevice(); | 78 bool IsEnterpriseDevice() const; |
79 | 79 |
80 // Checks whether this is a consumer kiosk enabled device. | 80 // Checks whether this is a consumer kiosk enabled device. |
81 bool IsConsumerKioskDeviceWithAutoLaunch(); | 81 bool IsConsumerKioskDeviceWithAutoLaunch(); |
82 | 82 |
83 // Gets the domain this device belongs to or an empty string if the device is | 83 // Gets the domain this device belongs to or an empty string if the device is |
84 // not an enterprise device. | 84 // not an enterprise device. |
85 std::string GetDomain(); | 85 std::string GetDomain() const; |
86 | 86 |
87 // Gets the user that registered the device. Returns an empty string if the | 87 // Gets the user that registered the device. Returns an empty string if the |
88 // device is not an enterprise device. | 88 // device is not an enterprise device. |
89 std::string GetRegistrationUser(); | 89 std::string GetRegistrationUser(); |
90 | 90 |
91 // Gets the device id that was generated when the device was registered. | 91 // Gets the device id that was generated when the device was registered. |
92 // Returns an empty string if the device is not an enterprise device or the | 92 // Returns an empty string if the device is not an enterprise device or the |
93 // device id was not stored in the lockbox (prior to R19). | 93 // device id was not stored in the lockbox (prior to R19). |
94 std::string GetDeviceId(); | 94 std::string GetDeviceId(); |
95 | 95 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 chromeos::CryptohomeClient* cryptohome_client_; | 184 chromeos::CryptohomeClient* cryptohome_client_; |
185 | 185 |
186 base::WeakPtrFactory<EnterpriseInstallAttributes> weak_ptr_factory_; | 186 base::WeakPtrFactory<EnterpriseInstallAttributes> weak_ptr_factory_; |
187 | 187 |
188 DISALLOW_COPY_AND_ASSIGN(EnterpriseInstallAttributes); | 188 DISALLOW_COPY_AND_ASSIGN(EnterpriseInstallAttributes); |
189 }; | 189 }; |
190 | 190 |
191 } // namespace policy | 191 } // namespace policy |
192 | 192 |
193 #endif // CHROME_BROWSER_CHROMEOS_POLICY_ENTERPRISE_INSTALL_ATTRIBUTES_H_ | 193 #endif // CHROME_BROWSER_CHROMEOS_POLICY_ENTERPRISE_INSTALL_ATTRIBUTES_H_ |
OLD | NEW |