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

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

Issue 15061007: Added a PolicyDomainDescriptor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 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
Index: chrome/browser/policy/cloud/component_cloud_policy_service.h
diff --git a/chrome/browser/policy/cloud/component_cloud_policy_service.h b/chrome/browser/policy/cloud/component_cloud_policy_service.h
index 1f248f11cde944abc19552141c21992fecc0fb82..c96f1ec5ee11ac66af1e22870c637481212fe2b3 100644
--- a/chrome/browser/policy/cloud/component_cloud_policy_service.h
+++ b/chrome/browser/policy/cloud/component_cloud_policy_service.h
@@ -29,6 +29,7 @@ class URLRequestContextGetter;
namespace policy {
+class PolicyDomainDescriptor;
class ResourceCache;
// Manages cloud policy for components.
@@ -83,13 +84,12 @@ class ComponentCloudPolicyService : public CloudPolicyClient::Observer,
// remote policy data.
void Disconnect();
- // |component_ids| is the complete set of components to track for the given
- // |domain|. This purges unused components from the cache, and starts
- // updating the components in |component_ids|.
- // It's only valid to call this for domains that are supported, i.e.
- // SupportsDomain(domain) is true.
- void RegisterPolicyDomain(PolicyDomain domain,
- const std::set<std::string>& component_ids);
+ // |descriptor| lists the complete set of components to track for its domain.
+ // This purges unused components from the cache, and starts updating the
+ // components listed in the descriptor. It's only valid to call this for
+ // domains that are supported, i.e. SupportsDomain(domain) is true.
+ void RegisterPolicyDomain(
+ scoped_refptr<const PolicyDomainDescriptor> descriptor);
// CloudPolicyClient::Observer implementation:
virtual void OnPolicyFetched(CloudPolicyClient* client) OVERRIDE;
« no previous file with comments | « chrome/browser/policy/browser_policy_connector.cc ('k') | chrome/browser/policy/cloud/component_cloud_policy_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698