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

Unified Diff: components/policy/core/common/cloud/component_cloud_policy_store.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/cloud/component_cloud_policy_store.h
diff --git a/chrome/browser/policy/cloud/component_cloud_policy_store.h b/components/policy/core/common/cloud/component_cloud_policy_store.h
similarity index 92%
rename from chrome/browser/policy/cloud/component_cloud_policy_store.h
rename to components/policy/core/common/cloud/component_cloud_policy_store.h
index b6f90da327d1d087298955edd4759b5512c7ead7..8b9cf8c436ddce73dea89d9c059594804e744982 100644
--- a/chrome/browser/policy/cloud/component_cloud_policy_store.h
+++ b/components/policy/core/common/cloud/component_cloud_policy_store.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_CLOUD_COMPONENT_CLOUD_POLICY_STORE_H_
-#define CHROME_BROWSER_POLICY_CLOUD_COMPONENT_CLOUD_POLICY_STORE_H_
+#ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_COMPONENT_CLOUD_POLICY_STORE_H_
+#define COMPONENTS_POLICY_CORE_COMMON_CLOUD_COMPONENT_CLOUD_POLICY_STORE_H_
#include <map>
#include <string>
@@ -11,9 +11,10 @@
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "base/threading/non_thread_safe.h"
-#include "chrome/browser/policy/cloud/resource_cache.h"
+#include "components/policy/core/common/cloud/resource_cache.h"
#include "components/policy/core/common/policy_bundle.h"
#include "components/policy/core/common/policy_namespace.h"
+#include "components/policy/policy_export.h"
namespace enterprise_management {
class ExternalPolicyData;
@@ -25,9 +26,9 @@ namespace policy {
// Validates protobufs for external policy data, validates the data itself, and
// caches both locally.
-class ComponentCloudPolicyStore : public base::NonThreadSafe {
+class POLICY_EXPORT ComponentCloudPolicyStore : public base::NonThreadSafe {
public:
- class Delegate {
+ class POLICY_EXPORT Delegate {
public:
virtual ~Delegate();
@@ -141,4 +142,4 @@ class ComponentCloudPolicyStore : public base::NonThreadSafe {
} // namespace policy
-#endif // CHROME_BROWSER_POLICY_CLOUD_COMPONENT_CLOUD_POLICY_STORE_H_
+#endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_COMPONENT_CLOUD_POLICY_STORE_H_

Powered by Google App Engine
This is Rietveld 408576698