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

Unified Diff: chrome/browser/policy/configuration_policy_provider.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/configuration_policy_provider.h
diff --git a/chrome/browser/policy/configuration_policy_provider.h b/chrome/browser/policy/configuration_policy_provider.h
index ac004d7f1155aa168ac65108ca3a83513e6fe35b..2d7372a65d77fb1c8dfa15248c1b4bf5d8278239 100644
--- a/chrome/browser/policy/configuration_policy_provider.h
+++ b/chrome/browser/policy/configuration_policy_provider.h
@@ -5,10 +5,8 @@
#ifndef CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_H_
#define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_H_
-#include <set>
-#include <string>
-
#include "base/basictypes.h"
+#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/observer_list.h"
#include "chrome/browser/policy/policy_bundle.h"
@@ -16,6 +14,8 @@
namespace policy {
+class PolicyDomainDescriptor;
+
// A mostly-abstract super class for platform-specific policy providers.
// Platform-specific policy providers (Windows Group Policy, gconf,
// etc.) should implement a subclass of this class.
@@ -68,13 +68,12 @@ class ConfigurationPolicyProvider {
virtual void RemoveObserver(Observer* observer);
// Notifies the provider that there is interest in loading policy for the
- // listed components of the given |domain|. The list is complete; all the
+ // listed components in the given |descriptor|. The list is complete; all the
// components that matter for the domain are included, and components not
// included can be discarded. The provider can ignore this information or use
// it to selectively load the corresponding policy from its sources.
virtual void RegisterPolicyDomain(
- PolicyDomain domain,
- const std::set<std::string>& component_ids);
+ scoped_refptr<const PolicyDomainDescriptor> descriptor);
protected:
// Subclasses must invoke this to update the policies currently served by

Powered by Google App Engine
This is Rietveld 408576698