Chromium Code Reviews| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 63 // kInstallAttributesFileName (created early during the boot process by | 63 // kInstallAttributesFileName (created early during the boot process by |
| 64 // lockbox-cache) the install attributes are fully trusted. | 64 // lockbox-cache) the install attributes are fully trusted. |
| 65 void Init(const base::FilePath& cache_file); | 65 void Init(const base::FilePath& cache_file); |
| 66 | 66 |
| 67 // Makes sure the local caches for enterprise-related install attributes are | 67 // Makes sure the local caches for enterprise-related install attributes are |
| 68 // up to date with what cryptohome has. This method checks the readiness of | 68 // up to date with what cryptohome has. This method checks the readiness of |
| 69 // attributes and read them if ready. Actual read will be performed in | 69 // attributes and read them if ready. Actual read will be performed in |
| 70 // ReadAttributesIfReady(). | 70 // ReadAttributesIfReady(). |
| 71 void ReadImmutableAttributes(const base::Closure& callback); | 71 void ReadImmutableAttributes(const base::Closure& callback); |
| 72 | 72 |
| 73 // Updates the firmware management parameters from TPM, storring the devmode | |
| 74 // flag according to |block_devmode|. Invokes |callback| when done. Must be | |
| 75 // called before LockDevice is done. Used to update TPM on enrollment. | |
| 76 void SetBlockDevmodeInTpm( | |
| 77 bool block_devmode, | |
| 78 const CryptohomeClient::ProtobufMethodCallback& callback); | |
| 79 | |
| 80 // Removes the firmware management parameters from TPM. | |
| 81 void RemoveFwmpInTpm( | |
|
Daniel Erat
2017/03/06 21:18:26
nit: same comment about expanding acronym here
igorcov
2017/03/09 12:22:57
Done.
| |
| 82 const CryptohomeClient::ProtobufMethodCallback& callback); | |
| 83 | |
| 73 // Locks the device into |device_mode|. Depending on |device_mode|, a | 84 // Locks the device into |device_mode|. Depending on |device_mode|, a |
| 74 // specific subset of |domain|, |realm| and |device_id| must be set. Can also | 85 // specific subset of |domain|, |realm| and |device_id| must be set. Can also |
| 75 // be called after the lock has already been taken, in which case it checks | 86 // be called after the lock has already been taken, in which case it checks |
| 76 // that the passed parameters fully agree with the locked attributes. | 87 // that the passed parameters fully agree with the locked attributes. |
| 77 // |callback| must not be null and is called with the result. Must not be | 88 // |callback| must not be null and is called with the result. Must not be |
| 78 // called while a previous LockDevice() invocation is still pending. | 89 // called while a previous LockDevice() invocation is still pending. |
| 79 void LockDevice(policy::DeviceMode device_mode, | 90 void LockDevice(policy::DeviceMode device_mode, |
| 80 const std::string& domain, | 91 const std::string& domain, |
| 81 const std::string& realm, | 92 const std::string& realm, |
| 82 const std::string& device_id, | 93 const std::string& device_id, |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 208 CryptohomeClient* cryptohome_client_; | 219 CryptohomeClient* cryptohome_client_; |
| 209 | 220 |
| 210 base::WeakPtrFactory<InstallAttributes> weak_ptr_factory_; | 221 base::WeakPtrFactory<InstallAttributes> weak_ptr_factory_; |
| 211 | 222 |
| 212 DISALLOW_COPY_AND_ASSIGN(InstallAttributes); | 223 DISALLOW_COPY_AND_ASSIGN(InstallAttributes); |
| 213 }; | 224 }; |
| 214 | 225 |
| 215 } // namespace chromeos | 226 } // namespace chromeos |
| 216 | 227 |
| 217 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_INSTALL_ATTRIBUTES_H_ | 228 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_INSTALL_ATTRIBUTES_H_ |
| OLD | NEW |