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

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

Issue 78763002: Move PolicyMap and its dependencies to components/policy/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: export nested struct 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/policy_map.h
diff --git a/chrome/browser/policy/policy_map.h b/components/policy/core/common/policy_map.h
similarity index 91%
rename from chrome/browser/policy/policy_map.h
rename to components/policy/core/common/policy_map.h
index d2d6f65e2a35ad8cb8367d23127f15bd250689ec..311f2af830a4358c1c154247145a11bb18d822b7 100644
--- a/chrome/browser/policy/policy_map.h
+++ b/components/policy/core/common/policy_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_POLICY_MAP_H_
-#define CHROME_BROWSER_POLICY_POLICY_MAP_H_
+#ifndef COMPONENTS_POLICY_CORE_COMMON_POLICY_MAP_H_
+#define COMPONENTS_POLICY_CORE_COMMON_POLICY_MAP_H_
#include <map>
#include <set>
@@ -11,17 +11,18 @@
#include "base/memory/scoped_ptr.h"
#include "base/values.h"
-#include "chrome/browser/policy/external_data_fetcher.h"
-#include "chrome/browser/policy/policy_types.h"
+#include "components/policy/core/common/external_data_fetcher.h"
+#include "components/policy/core/common/policy_types.h"
+#include "components/policy/policy_export.h"
namespace policy {
// A mapping of policy names to policy values for a given policy namespace.
-class PolicyMap {
+class POLICY_EXPORT PolicyMap {
public:
// Each policy maps to an Entry which keeps the policy value as well as other
// relevant data about the policy.
- struct Entry {
+ struct POLICY_EXPORT Entry {
PolicyLevel level;
PolicyScope scope;
base::Value* value;
@@ -121,4 +122,4 @@ class PolicyMap {
} // namespace policy
-#endif // CHROME_BROWSER_POLICY_POLICY_MAP_H_
+#endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_MAP_H_

Powered by Google App Engine
This is Rietveld 408576698