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

Unified Diff: chrome/browser/policy/policy_service.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: rebase 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
« no previous file with comments | « chrome/browser/policy/policy_prefs_browsertest.cc ('k') | chrome/browser/policy/policy_service_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/policy_service.h
diff --git a/chrome/browser/policy/policy_service.h b/chrome/browser/policy/policy_service.h
index b6c6c0e6ca418241d874efec99270c03a6e276c0..58ce2c18ba42d01f530503a19b74382c24b12c37 100644
--- a/chrome/browser/policy/policy_service.h
+++ b/chrome/browser/policy/policy_service.h
@@ -10,14 +10,11 @@
#include "base/basictypes.h"
#include "base/callback.h"
-#include "base/memory/ref_counted.h"
#include "chrome/browser/policy/policy_map.h"
#include "components/policy/core/common/policy_namespace.h"
namespace policy {
-class PolicyDomainDescriptor;
-
// The PolicyService merges policies from all available sources, taking into
// account their priorities. Policy clients can retrieve policy for their domain
// and register for notifications on policy updates.
@@ -54,21 +51,8 @@ class PolicyService {
virtual void RemoveObserver(PolicyDomain domain, Observer* observer) = 0;
- // Registers the |descriptor| of a policy domain, indicated by
- // |descriptor->domain()|. This overrides the descriptor previously set, if
- // there was one.
- // This registration signals that there is interest in receiving policy for
- // the components listed in the descriptor. The policy providers will try to
- // load policy for these components, and validate it against the descriptor.
- // Cached data for components that aren't registered anymore may be dropped.
- virtual void RegisterPolicyDomain(
- scoped_refptr<const PolicyDomainDescriptor> descriptor) = 0;
-
virtual const PolicyMap& GetPolicies(const PolicyNamespace& ns) const = 0;
- virtual scoped_refptr<const PolicyDomainDescriptor> GetPolicyDomainDescriptor(
- PolicyDomain domain) const = 0;
-
// The PolicyService loads policy from several sources, and some require
// asynchronous loads. IsInitializationComplete() returns true once all
// sources have loaded their policies for the given |domain|.
« no previous file with comments | « chrome/browser/policy/policy_prefs_browsertest.cc ('k') | chrome/browser/policy/policy_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698