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; |