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

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

Issue 109743002: Move policy code into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar fixes Created 7 years 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/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_
« no previous file with comments | « components/policy/core/common/policy_loader_win_unittest.cc ('k') | components/policy/core/common/policy_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698