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

Unified Diff: components/policy/core/common/schema_map.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
« no previous file with comments | « components/policy.gypi ('k') | components/policy/core/common/schema_map.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/core/common/schema_map.h
diff --git a/chrome/browser/policy/schema_map.h b/components/policy/core/common/schema_map.h
similarity index 85%
rename from chrome/browser/policy/schema_map.h
rename to components/policy/core/common/schema_map.h
index b3a1db1937a017cf2eac4959052688f2ca0db087..e91886ea4200f166cef9d0440ba1a08e8844bbc1 100644
--- a/chrome/browser/policy/schema_map.h
+++ b/components/policy/core/common/schema_map.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_MAP_H_
-#define CHROME_BROWSER_POLICY_SCHEMA_MAP_H_
+#ifndef COMPONENTS_POLICY_CORE_COMMON_SCHEMA_MAP_H_
+#define COMPONENTS_POLICY_CORE_COMMON_SCHEMA_MAP_H_
#include <map>
#include <string>
@@ -12,6 +12,7 @@
#include "base/memory/ref_counted.h"
#include "components/policy/core/common/policy_namespace.h"
#include "components/policy/core/common/schema.h"
+#include "components/policy/policy_export.h"
namespace policy {
@@ -22,7 +23,7 @@ typedef std::map<PolicyDomain, ComponentMap> DomainMap;
// Contains a mapping of policy namespaces (domain + component ID) to its
// corresponding Schema.
-class SchemaMap : public base::RefCountedThreadSafe<SchemaMap> {
+class POLICY_EXPORT SchemaMap : public base::RefCountedThreadSafe<SchemaMap> {
public:
SchemaMap();
// Takes ownership of |map| (its contents will be swapped).
@@ -61,4 +62,4 @@ class SchemaMap : public base::RefCountedThreadSafe<SchemaMap> {
} // namespace policy
-#endif // CHROME_BROWSER_POLICY_SCHEMA_MAP_H_
+#endif // COMPONENTS_POLICY_CORE_COMMON_SCHEMA_MAP_H_
« no previous file with comments | « components/policy.gypi ('k') | components/policy/core/common/schema_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698