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

Unified Diff: components/policy/core/common/schema_registry.h

Issue 78453005: Move PolicySchema and PolicySchemaRegistry to components/policy/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: components/policy/core/common/schema_registry.h
diff --git a/chrome/browser/policy/schema_registry.h b/components/policy/core/common/schema_registry.h
similarity index 88%
rename from chrome/browser/policy/schema_registry.h
rename to components/policy/core/common/schema_registry.h
index 5134f0c22b1188cd6790eaab61b38988e393452f..d02c963c072e6b63960300ba0eb639c4051e205d 100644
--- a/chrome/browser/policy/schema_registry.h
+++ b/components/policy/core/common/schema_registry.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_POLICY_SCHEMA_REGISTRY_H_
-#define CHROME_BROWSER_POLICY_SCHEMA_REGISTRY_H_
+#ifndef COMPONENTS_POLICY_CORE_COMMON_SCHEMA_REGISTRY_H_
+#define COMPONENTS_POLICY_CORE_COMMON_SCHEMA_REGISTRY_H_
#include <set>
@@ -12,9 +12,9 @@
#include "base/memory/ref_counted.h"
#include "base/observer_list.h"
#include "base/threading/non_thread_safe.h"
-#include "chrome/browser/policy/schema_map.h"
#include "components/policy/core/common/policy_namespace.h"
#include "components/policy/core/common/schema.h"
+#include "components/policy/core/common/schema_map.h"
namespace policy {
@@ -24,7 +24,7 @@ class SchemaMap;
// observers to get notified whenever it is updated.
// This object is not thread safe and must be used from the owner's thread,
// usually UI.
-class SchemaRegistry : public base::NonThreadSafe {
+class POLICY_EXPORT SchemaRegistry : public base::NonThreadSafe {
public:
class Observer {
public:
@@ -83,8 +83,8 @@ class SchemaRegistry : public base::NonThreadSafe {
};
// A registry that combines the maps of other registries.
-class CombinedSchemaRegistry : public SchemaRegistry,
- public SchemaRegistry::Observer {
+class POLICY_EXPORT CombinedSchemaRegistry : public SchemaRegistry,
+ public SchemaRegistry::Observer {
public:
CombinedSchemaRegistry();
virtual ~CombinedSchemaRegistry();
@@ -112,4 +112,4 @@ class CombinedSchemaRegistry : public SchemaRegistry,
} // namespace policy
-#endif // CHROME_BROWSER_POLICY_SCHEMA_REGISTRY_H_
+#endif // COMPONENTS_POLICY_CORE_COMMON_SCHEMA_REGISTRY_H_

Powered by Google App Engine
This is Rietveld 408576698