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

Unified Diff: chrome/browser/policy/user_cloud_policy_store.h

Issue 11415094: Split UserCloudPolicyManager implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Bring back ProxyPolicyProvider, fix local_state policy provider, fix Joao's fine CloudPolicyTest. Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/user_cloud_policy_store.h
diff --git a/chrome/browser/policy/user_cloud_policy_store.h b/chrome/browser/policy/user_cloud_policy_store.h
index 95e8d0fac18783871cbe63ec0ea3345291d80442..e4e4a3b4e98265a92c93626797d38ace3ce37a13 100644
--- a/chrome/browser/policy/user_cloud_policy_store.h
+++ b/chrome/browser/policy/user_cloud_policy_store.h
@@ -25,19 +25,22 @@ class UserCloudPolicyStore : public UserCloudPolicyStoreBase {
UserCloudPolicyStore(Profile* profile, const FilePath& policy_file);
virtual ~UserCloudPolicyStore();
+ // Factory method for creating a UserCloudPolicyStore for |profile|.
+ static scoped_ptr<UserCloudPolicyStore> Create(Profile* profile);
Joao da Silva 2012/11/21 17:06:34 Profile needs to be forward-declared after the dec
Mattias Nissler (ping if slow) 2012/11/22 20:51:59 Done.
+
// Loads policy immediately on the current thread.
virtual void LoadImmediately();
Joao da Silva 2012/11/21 17:06:34 Mention that this is virtual for mocks.
Mattias Nissler (ping if slow) 2012/11/22 20:51:59 Done.
+ // Deletes any existing policy blob and notifies observers via OnStoreLoaded()
+ // that the blob has changed. Virtual for mocks.
+ virtual void Clear();
+
// CloudPolicyStore implementation.
virtual void Load() OVERRIDE;
virtual void Store(
const enterprise_management::PolicyFetchResponse& policy) OVERRIDE;
- protected:
- virtual void RemoveStoredPolicy() OVERRIDE;
-
private:
-
// Callback invoked when a new policy has been loaded from disk. If
// |validate_in_background| is true, then policy is validated via a background
// thread.

Powered by Google App Engine
This is Rietveld 408576698