Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(540)

Side by Side Diff: chrome/browser/chromeos/settings/install_attributes.h

Issue 2727713003: Update FWMP in TPM (Closed)
Patch Set: Nit Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
Daniel Erat 2017/03/09 22:15:22 nit: "storing"
igorcov 2017/03/10 11:05:45 Done.
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
73 // Locks the device into |device_mode|. Depending on |device_mode|, a 80 // 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 81 // 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 82 // 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. 83 // 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 84 // |callback| must not be null and is called with the result. Must not be
78 // called while a previous LockDevice() invocation is still pending. 85 // called while a previous LockDevice() invocation is still pending.
79 void LockDevice(policy::DeviceMode device_mode, 86 void LockDevice(policy::DeviceMode device_mode,
80 const std::string& domain, 87 const std::string& domain,
81 const std::string& realm, 88 const std::string& realm,
82 const std::string& device_id, 89 const std::string& device_id,
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 CryptohomeClient* cryptohome_client_; 215 CryptohomeClient* cryptohome_client_;
209 216
210 base::WeakPtrFactory<InstallAttributes> weak_ptr_factory_; 217 base::WeakPtrFactory<InstallAttributes> weak_ptr_factory_;
211 218
212 DISALLOW_COPY_AND_ASSIGN(InstallAttributes); 219 DISALLOW_COPY_AND_ASSIGN(InstallAttributes);
213 }; 220 };
214 221
215 } // namespace chromeos 222 } // namespace chromeos
216 223
217 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_INSTALL_ATTRIBUTES_H_ 224 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_INSTALL_ATTRIBUTES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698