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

Side by Side Diff: chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h

Issue 2186623002: Minimal attestation-based enrollment flow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed achuithb's feedback. Created 4 years, 3 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_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // Return the StatusUploader used to communicate device status to the 117 // Return the StatusUploader used to communicate device status to the
118 // policy server. 118 // policy server.
119 StatusUploader* GetStatusUploader() const { return status_uploader_.get(); } 119 StatusUploader* GetStatusUploader() const { return status_uploader_.get(); }
120 120
121 private: 121 private:
122 // Saves the state keys received from |session_manager_client_|. 122 // Saves the state keys received from |session_manager_client_|.
123 void OnStateKeysUpdated(); 123 void OnStateKeysUpdated();
124 124
125 // Initializes requisition settings at OOBE with values from VPD. 125 // Initializes requisition settings at OOBE with values from VPD.
126 void InitializeRequisition(); 126 void InitializeRequisition();
127 // Initializes enrollment settings at OOBE with values from flags.
128 void InitializeEnrollment();
129 127
130 void NotifyConnected(); 128 void NotifyConnected();
131 void NotifyDisconnected(); 129 void NotifyDisconnected();
132 130
133 // Factory function to create the StatusUploader. 131 // Factory function to create the StatusUploader.
134 void CreateStatusUploader(); 132 void CreateStatusUploader();
135 133
136 // Points to the same object as the base CloudPolicyManager::store(), but with 134 // Points to the same object as the base CloudPolicyManager::store(), but with
137 // actual device policy specific type. 135 // actual device policy specific type.
138 std::unique_ptr<DeviceCloudPolicyStoreChromeOS> device_store_; 136 std::unique_ptr<DeviceCloudPolicyStoreChromeOS> device_store_;
(...skipping 22 matching lines...) Expand all
161 attestation_policy_observer_; 159 attestation_policy_observer_;
162 160
163 base::ObserverList<Observer, true> observers_; 161 base::ObserverList<Observer, true> observers_;
164 162
165 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS); 163 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS);
166 }; 164 };
167 165
168 } // namespace policy 166 } // namespace policy
169 167
170 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H _ 168 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698