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

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

Issue 10825415: Added code to persist downloaded cloud policy to disk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More review feedback addressed. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/policy/cloud_policy_service.cc ('k') | chrome/browser/policy/user_cloud_policy_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/cloud_policy_store.h
diff --git a/chrome/browser/policy/cloud_policy_store.h b/chrome/browser/policy/cloud_policy_store.h
index c79610bc6b62928be796bcea707bd7be0e69f8bc..f1f2d390a4337d9be364a280285d7492fd2a4941 100644
--- a/chrome/browser/policy/cloud_policy_store.h
+++ b/chrome/browser/policy/cloud_policy_store.h
@@ -73,18 +73,18 @@ class CloudPolicyStore {
return validation_status_;
}
- // Store a new policy blob. Pending store operations will be canceled. The
- // store operation may proceed asynchronously and observers are notified once
- // the operation finishes. If successful, OnStoreLoaded() will be invoked on
- // the observers and the updated policy can be read through policy(). Errors
- // generate OnStoreError() notifications.
+ // Store a new policy blob. Pending load/store operations will be canceled.
+ // The store operation may proceed asynchronously and observers are notified
+ // once the operation finishes. If successful, OnStoreLoaded() will be invoked
+ // on the observers and the updated policy can be read through policy().
+ // Errors generate OnStoreError() notifications.
virtual void Store(
const enterprise_management::PolicyFetchResponse& policy) = 0;
- // Load the current policy blob from persistent storage. This may trigger
- // asynchronous operations. Upon success, OnStoreLoaded() will be called on
- // the registered observers. Otherwise, OnStoreError() reports the reason for
- // failure.
+ // Load the current policy blob from persistent storage. Pending load/store
+ // operations will be canceled. This may trigger asynchronous operations.
+ // Upon success, OnStoreLoaded() will be called on the registered observers.
+ // Otherwise, OnStoreError() reports the reason for failure.
virtual void Load() = 0;
// Deletes any existing policy blob and notifies observers via OnStoreLoaded()
« no previous file with comments | « chrome/browser/policy/cloud_policy_service.cc ('k') | chrome/browser/policy/user_cloud_policy_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698