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

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: export nested class on win 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 87%
rename from chrome/browser/policy/schema_registry.h
rename to components/policy/core/common/schema_registry.h
index 5134f0c22b1188cd6790eaab61b38988e393452f..5f565895d63a84d17767d0e87ca9c3a5c324366a 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,9 +24,9 @@ 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 {
+ class POLICY_EXPORT Observer {
public:
// Invoked whenever schemas are registered or unregistered.
// |has_new_schemas| is true if a new component has been registered since
@@ -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_
« no previous file with comments | « components/policy/core/common/schema_map_unittest.cc ('k') | components/policy/core/common/schema_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698