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

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

Issue 10885015: Implement new-style CloudPolicyStore for Chrome OS device policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
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_DEVICE_SETTINGS_SERVICE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_SERVICE_H_
6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_SERVICE_H_ 6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_SERVICE_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // operation is reported through |callback|. If successful, the updated device 151 // operation is reported through |callback|. If successful, the updated device
152 // settings are present in policy_data() and device_settings() when the 152 // settings are present in policy_data() and device_settings() when the
153 // callback runs. 153 // callback runs.
154 void SignAndStore( 154 void SignAndStore(
155 scoped_ptr<enterprise_management::ChromeDeviceSettingsProto> new_settings, 155 scoped_ptr<enterprise_management::ChromeDeviceSettingsProto> new_settings,
156 const base::Closure& callback); 156 const base::Closure& callback);
157 157
158 // Stores a policy blob to session_manager. The result of the operation is 158 // Stores a policy blob to session_manager. The result of the operation is
159 // reported through |callback|. If successful, the updated device settings are 159 // reported through |callback|. If successful, the updated device settings are
160 // present in policy_data() and device_settings() when the callback runs. 160 // present in policy_data() and device_settings() when the callback runs.
161 void Store(const std::string& policy_blob, const base::Closure& callback); 161 void Store(scoped_ptr<enterprise_management::PolicyFetchResponse> policy,
Joao da Silva 2012/08/28 19:56:57 PolicyFetchResponse needs forward decl
Mattias Nissler (ping if slow) 2012/08/31 14:13:18 Done.
162 const base::Closure& callback);
162 163
163 // Returns the ownership status. May return OWNERSHIP_UNKNOWN if the disk 164 // Returns the ownership status. May return OWNERSHIP_UNKNOWN if the disk
164 // hasn't been checked yet. 165 // hasn't been checked yet.
165 OwnershipStatus GetOwnershipStatus(); 166 OwnershipStatus GetOwnershipStatus();
166 167
167 // Determines the ownership status and reports the result to |callback|. This 168 // Determines the ownership status and reports the result to |callback|. This
168 // is guaranteed to never return OWNERSHIP_UNKNOWN. 169 // is guaranteed to never return OWNERSHIP_UNKNOWN.
169 void GetOwnershipStatusAsync(const OwnershipStatusCallback& callback); 170 void GetOwnershipStatusAsync(const OwnershipStatusCallback& callback);
170 171
171 // Checks whether we have the private owner key. 172 // Checks whether we have the private owner key.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 std::deque<SessionManagerOperation*> pending_operations_; 227 std::deque<SessionManagerOperation*> pending_operations_;
227 228
228 ObserverList<Observer, true> observers_; 229 ObserverList<Observer, true> observers_;
229 230
230 DISALLOW_COPY_AND_ASSIGN(DeviceSettingsService); 231 DISALLOW_COPY_AND_ASSIGN(DeviceSettingsService);
231 }; 232 };
232 233
233 } // namespace chromeos 234 } // namespace chromeos
234 235
235 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_SERVICE_H_ 236 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698