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

Unified Diff: components/policy/core/common/cloud/cloud_policy_client.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/cloud_policy_client.h
diff --git a/chrome/browser/policy/cloud/cloud_policy_client.h b/components/policy/core/common/cloud/cloud_policy_client.h
similarity index 96%
rename from chrome/browser/policy/cloud/cloud_policy_client.h
rename to components/policy/core/common/cloud/cloud_policy_client.h
index cd2911f2c796e4e906b37ca6f9259707319c2d05..3720e52b8dca32b8e6caa84d3da7325dd21f36c6 100644
--- a/chrome/browser/policy/cloud/cloud_policy_client.h
+++ b/components/policy/core/common/cloud/cloud_policy_client.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_CLOUD_POLICY_CLIENT_H_
-#define CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_CLIENT_H_
+#ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CLIENT_H_
+#define COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CLIENT_H_
#include <map>
#include <set>
@@ -14,8 +14,9 @@
#include "base/memory/scoped_ptr.h"
#include "base/observer_list.h"
#include "base/time/time.h"
-#include "chrome/browser/policy/cloud/cloud_policy_constants.h"
#include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h"
+#include "components/policy/core/common/cloud/cloud_policy_constants.h"
+#include "components/policy/policy_export.h"
namespace net {
class URLRequestContextGetter;
@@ -34,7 +35,7 @@ class DeviceManagementService;
// Note that CloudPolicyClient doesn't do any validation of policy responses
// such as signature and time stamp checks. These happen once the policy gets
// installed in the cloud policy cache.
-class CloudPolicyClient {
+class POLICY_EXPORT CloudPolicyClient {
public:
// Maps a PolicyNamespaceKey to its corresponding PolicyFetchResponse.
typedef std::map<PolicyNamespaceKey,
@@ -45,7 +46,7 @@ class CloudPolicyClient {
typedef base::Callback<void(bool status)> StatusCallback;
// Observer interface for state and policy changes.
- class Observer {
+ class POLICY_EXPORT Observer {
public:
virtual ~Observer();
@@ -68,7 +69,7 @@ class CloudPolicyClient {
// Delegate interface for supplying status information to upload to the server
// as part of the policy fetch request.
- class StatusProvider {
+ class POLICY_EXPORT StatusProvider {
public:
virtual ~StatusProvider();
@@ -293,4 +294,4 @@ class CloudPolicyClient {
} // namespace policy
-#endif // CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_CLIENT_H_
+#endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698