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

Unified Diff: chrome/browser/policy/policy_domain_descriptor.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_browsertest.cc ('k') | chrome/browser/policy/policy_domain_descriptor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/policy_domain_descriptor.h
diff --git a/chrome/browser/policy/policy_domain_descriptor.h b/chrome/browser/policy/policy_domain_descriptor.h
deleted file mode 100644
index ae92a4868974ebb92d91c6e1a29fe247c8ef40ed..0000000000000000000000000000000000000000
--- a/chrome/browser/policy/policy_domain_descriptor.h
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_POLICY_POLICY_DOMAIN_DESCRIPTOR_H_
-#define CHROME_BROWSER_POLICY_POLICY_DOMAIN_DESCRIPTOR_H_
-
-#include <map>
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
-#include "components/policy/core/common/policy_namespace.h"
-#include "components/policy/core/common/schema.h"
-
-namespace policy {
-
-class PolicyBundle;
-
-// For each policy domain, this class keeps the complete list of valid
-// components for that domain, and the Schema for each component.
-class PolicyDomainDescriptor
- : public base::RefCountedThreadSafe<PolicyDomainDescriptor> {
- public:
- typedef std::map<std::string, Schema> SchemaMap;
-
- explicit PolicyDomainDescriptor(PolicyDomain domain);
-
- PolicyDomain domain() const { return domain_; }
- const SchemaMap& components() const { return schema_map_; }
-
- // Registers the given |component_id| for this domain, and sets its current
- // |schema|. This registration overrides any previously set schema for this
- // component.
- void RegisterComponent(const std::string& component_id, Schema schema);
-
- // Removes all the policies in |bundle| that don't match this descriptor.
- // Policies of domains other than |domain_| are ignored.
- void FilterBundle(PolicyBundle* bundle) const;
-
- private:
- friend class base::RefCountedThreadSafe<PolicyDomainDescriptor>;
-
- ~PolicyDomainDescriptor();
-
- PolicyDomain domain_;
- SchemaMap schema_map_;
-
- DISALLOW_COPY_AND_ASSIGN(PolicyDomainDescriptor);
-};
-
-} // namespace policy
-
-#endif // CHROME_BROWSER_POLICY_POLICY_DOMAIN_DESCRIPTOR_H_
« no previous file with comments | « chrome/browser/policy/policy_browsertest.cc ('k') | chrome/browser/policy/policy_domain_descriptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698