Index: components/policy/core/common/policy_service.h |
diff --git a/chrome/browser/policy/policy_service.h b/components/policy/core/common/policy_service.h |
similarity index 92% |
rename from chrome/browser/policy/policy_service.h |
rename to components/policy/core/common/policy_service.h |
index 259f70a276f9fcf9322c5ed252d376313ed656b6..4293e5c363ade7b2d6cd80c1c94d8f931b472432 100644 |
--- a/chrome/browser/policy/policy_service.h |
+++ b/components/policy/core/common/policy_service.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_POLICY_SERVICE_H_ |
-#define CHROME_BROWSER_POLICY_POLICY_SERVICE_H_ |
+#ifndef COMPONENTS_POLICY_CORE_COMMON_POLICY_SERVICE_H_ |
+#define COMPONENTS_POLICY_CORE_COMMON_POLICY_SERVICE_H_ |
#include <map> |
#include <string> |
@@ -12,6 +12,7 @@ |
#include "base/callback.h" |
#include "components/policy/core/common/policy_map.h" |
#include "components/policy/core/common/policy_namespace.h" |
+#include "components/policy/policy_export.h" |
namespace policy { |
@@ -22,9 +23,9 @@ namespace policy { |
// The PolicyService is available from BrowserProcess as a global singleton. |
// There is also a PolicyService for browser-wide policies available from |
// BrowserProcess as a global singleton. |
-class PolicyService { |
+class POLICY_EXPORT PolicyService { |
public: |
- class Observer { |
+ class POLICY_EXPORT Observer { |
public: |
// Invoked whenever policies for the given |ns| namespace are modified. |
// This is only invoked for changes that happen after AddObserver is called. |
@@ -75,7 +76,7 @@ class PolicyService { |
// A registrar that only observes changes to particular policies within the |
// PolicyMap for the given policy namespace. |
-class PolicyChangeRegistrar : public PolicyService::Observer { |
+class POLICY_EXPORT PolicyChangeRegistrar : public PolicyService::Observer { |
public: |
typedef base::Callback<void(const Value*, const Value*)> UpdateCallback; |
@@ -111,4 +112,4 @@ class PolicyChangeRegistrar : public PolicyService::Observer { |
} // namespace policy |
-#endif // CHROME_BROWSER_POLICY_POLICY_SERVICE_H_ |
+#endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_SERVICE_H_ |