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

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

Issue 8727037: Signed settings refactoring: Proper caching and more tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments. Created 9 years 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) 2011 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 #pragma once
8
9 #include <string>
10
11 #include "base/basictypes.h"
12 #include "base/values.h"
13 #include "chrome/browser/policy/proto/chrome_device_policy.pb.h"
14 #include "chrome/browser/policy/proto/device_management_backend.pb.h"
15
16 namespace em = enterprise_management;
17
18 class PrefService;
19
20 namespace chromeos {
21
22 // There is need (proxy settings at OOBE stage) to store settings
23 // (that normally would go into SignedSettings storage)
24 // before owner has been assigned (hence no key is available).
25 // This set of functions serves as a transient storage in that case.
26 namespace signed_settings_cache {
27 // Registers required pref section.
28 void RegisterPrefs(PrefService* local_state);
Denis Lagno 2011/12/01 00:38:12 do we indent inside namespace?
pastarmovj 2011/12/01 10:07:17 You are right we don't I just forgot to fix it whe
29
30 bool Store(const em::PolicyData &policy, PrefService* local_state);
31 bool Retrieve(em::PolicyData *policy, PrefService* local_state);
32
33 // Call this after owner has been assigned to persist settings
34 // into SignedSettings storage.
35 void Finalize(PrefService* local_state,
36 const em::PolicyFetchResponse& policy);
37 } // namespace signed_settings_cache
38
39 } // namespace chromeos
40
41 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SIGNED_SETTINGS_CACHE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698