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

Unified Diff: chrome/browser/policy/cloud/component_cloud_policy_store.h

Issue 56623005: Policy providers all get a SchemaRegistry to work with. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chrome-policy-schema-9-purge-with-callback
Patch Set: Fixed mac tests Created 7 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/cloud/component_cloud_policy_store.h
diff --git a/chrome/browser/policy/cloud/component_cloud_policy_store.h b/chrome/browser/policy/cloud/component_cloud_policy_store.h
index 3e5285e159f3a30ad319f0df8dddeecdfc0f34c8..0311db2af9c05b48d9b6c8f5e7e8735e02f0b859 100644
--- a/chrome/browser/policy/cloud/component_cloud_policy_store.h
+++ b/chrome/browser/policy/cloud/component_cloud_policy_store.h
@@ -6,12 +6,12 @@
#define CHROME_BROWSER_POLICY_CLOUD_COMPONENT_CLOUD_POLICY_STORE_H_
#include <map>
-#include <set>
#include <string>
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "base/threading/non_thread_safe.h"
+#include "chrome/browser/policy/cloud/resource_cache.h"
#include "chrome/browser/policy/policy_bundle.h"
#include "components/policy/core/common/policy_namespace.h"
@@ -23,8 +23,6 @@ class PolicyFetchResponse;
namespace policy {
-class ResourceCache;
-
// Validates protobufs for external policy data, validates the data itself, and
// caches both locally.
class ComponentCloudPolicyStore : public base::NonThreadSafe {
@@ -91,10 +89,10 @@ class ComponentCloudPolicyStore : public base::NonThreadSafe {
// Deletes the storage of namespace |ns| and stops serving its policies.
void Delete(const PolicyNamespace& ns);
- // Deletes the storage of all components of |domain| that are not in
- // |components_to_keep|, and stops serving their policies.
+ // Deletes the storage of all components of |domain| that pass then given
bartfab (slow) 2013/11/05 15:53:04 It is kind of weird that those which pass the test
Joao da Silva 2013/11/07 13:15:00 It has been renamed to SubkeyFilter.
+ // |test|, and stops serving their policies.
void Purge(PolicyDomain domain,
- const std::set<std::string>& components_to_keep);
+ const ResourceCache::KeyTest& test);
// Validates |proto| and returns the corresponding policy namespace in |ns|,
// and the parsed ExternalPolicyData in |payload|.

Powered by Google App Engine
This is Rietveld 408576698