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

Unified Diff: components/policy/core/common/cloud/component_cloud_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/cloud/component_cloud_policy_service.h
diff --git a/chrome/browser/policy/cloud/component_cloud_policy_service.h b/components/policy/core/common/cloud/component_cloud_policy_service.h
similarity index 89%
rename from chrome/browser/policy/cloud/component_cloud_policy_service.h
rename to components/policy/core/common/cloud/component_cloud_policy_service.h
index 95ae7ed85341e4075545e5cd417afeb509fad3d0..281d72c9298b0a5ef204ae9ba8268988838e052d 100644
--- a/chrome/browser/policy/cloud/component_cloud_policy_service.h
+++ b/components/policy/core/common/cloud/component_cloud_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_CLOUD_COMPONENT_CLOUD_POLICY_SERVICE_H_
-#define CHROME_BROWSER_POLICY_CLOUD_COMPONENT_CLOUD_POLICY_SERVICE_H_
+#ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_COMPONENT_CLOUD_POLICY_SERVICE_H_
+#define COMPONENTS_POLICY_CORE_COMMON_CLOUD_COMPONENT_CLOUD_POLICY_SERVICE_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
@@ -11,12 +11,13 @@
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/threading/non_thread_safe.h"
-#include "chrome/browser/policy/cloud/cloud_policy_client.h"
-#include "chrome/browser/policy/cloud/cloud_policy_core.h"
-#include "chrome/browser/policy/cloud/cloud_policy_store.h"
+#include "components/policy/core/common/cloud/cloud_policy_client.h"
+#include "components/policy/core/common/cloud/cloud_policy_core.h"
+#include "components/policy/core/common/cloud/cloud_policy_store.h"
#include "components/policy/core/common/policy_bundle.h"
#include "components/policy/core/common/policy_namespace.h"
#include "components/policy/core/common/schema_registry.h"
+#include "components/policy/policy_export.h"
namespace base {
class SequencedTaskRunner;
@@ -36,13 +37,14 @@ class SchemaMap;
//
// This class takes care of fetching, validating, storing and updating policy
// for components. The components to manage come from a SchemaRegistry.
-class ComponentCloudPolicyService : public CloudPolicyClient::Observer,
- public CloudPolicyCore::Observer,
- public CloudPolicyStore::Observer,
- public SchemaRegistry::Observer,
- public base::NonThreadSafe {
+class POLICY_EXPORT ComponentCloudPolicyService
+ : public CloudPolicyClient::Observer,
+ public CloudPolicyCore::Observer,
+ public CloudPolicyStore::Observer,
+ public SchemaRegistry::Observer,
+ public base::NonThreadSafe {
public:
- class Delegate {
+ class POLICY_EXPORT Delegate {
public:
virtual ~Delegate();
@@ -174,4 +176,4 @@ class ComponentCloudPolicyService : public CloudPolicyClient::Observer,
} // namespace policy
-#endif // CHROME_BROWSER_POLICY_CLOUD_COMPONENT_CLOUD_POLICY_SERVICE_H_
+#endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_COMPONENT_CLOUD_POLICY_SERVICE_H_

Powered by Google App Engine
This is Rietveld 408576698