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

Side by Side Diff: chrome/browser/chromeos/login/signed_settings_cache.h

Issue 10824112: Move Chrome OS device settings stuff to chrome/browser/chromeos/settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 8 years, 4 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SIGNED_SETTINGS_CACHE_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SIGNED_SETTINGS_CACHE_H_
7
8 namespace enterprise_management {
9 class PolicyData;
10 }
11
12 class PrefService;
13
14 namespace chromeos {
15
16 // There is need (metrics at OOBE stage) to store settings
17 // (that normally would go into SignedSettings storage)
18 // before owner has been assigned (hence no key is available).
19 // This set of functions serves as a transient storage in that case.
20 namespace signed_settings_cache {
21 // Registers required pref section.
22 void RegisterPrefs(PrefService* local_state);
23
24 // Stores a new policy blob inside the cache stored in |local_state|.
25 bool Store(const enterprise_management::PolicyData &policy,
26 PrefService* local_state);
27
28 // Retrieves the policy blob from the cache stored in |local_state|.
29 bool Retrieve(enterprise_management::PolicyData *policy,
30 PrefService* local_state);
31
32 // Call this after owner has been assigned to persist settings
33 // into SignedSettings storage.
34 void Finalize(PrefService* local_state);
35 } // namespace signed_settings_cache
36
37 } // namespace chromeos
38
39 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SIGNED_SETTINGS_CACHE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/signed_settings.cc ('k') | chrome/browser/chromeos/login/signed_settings_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698