| Index: components/policy/core/common/cloud/cloud_policy_service.h
|
| diff --git a/chrome/browser/policy/cloud/cloud_policy_service.h b/components/policy/core/common/cloud/cloud_policy_service.h
|
| similarity index 84%
|
| rename from chrome/browser/policy/cloud/cloud_policy_service.h
|
| rename to components/policy/core/common/cloud/cloud_policy_service.h
|
| index 9437527a31040625c76db45c3985552511666159..a6139a3207b1a78afe9429f62c563c081c316d82 100644
|
| --- a/chrome/browser/policy/cloud/cloud_policy_service.h
|
| +++ b/components/policy/core/common/cloud/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_CLOUD_POLICY_SERVICE_H_
|
| -#define CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_SERVICE_H_
|
| +#ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_SERVICE_H_
|
| +#define COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_SERVICE_H_
|
|
|
| #include <string>
|
| #include <vector>
|
| @@ -12,23 +12,24 @@
|
| #include "base/callback_forward.h"
|
| #include "base/compiler_specific.h"
|
| #include "base/observer_list.h"
|
| -#include "chrome/browser/policy/cloud/cloud_policy_client.h"
|
| -#include "chrome/browser/policy/cloud/cloud_policy_constants.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_constants.h"
|
| +#include "components/policy/core/common/cloud/cloud_policy_store.h"
|
| +#include "components/policy/policy_export.h"
|
|
|
| namespace policy {
|
|
|
| // Coordinates cloud policy handling, moving downloaded policy from the client
|
| // to the store, and setting up client registrations from cached data in the
|
| // store. Also coordinates actions on policy refresh triggers.
|
| -class CloudPolicyService : public CloudPolicyClient::Observer,
|
| - public CloudPolicyStore::Observer {
|
| +class POLICY_EXPORT CloudPolicyService : public CloudPolicyClient::Observer,
|
| + public CloudPolicyStore::Observer {
|
| public:
|
| // Callback invoked once the policy refresh attempt has completed. Passed
|
| // bool parameter is true if the refresh was successful (no error).
|
| typedef base::Callback<void(bool)> RefreshPolicyCallback;
|
|
|
| - class Observer {
|
| + class POLICY_EXPORT Observer {
|
| public:
|
| // Invoked when CloudPolicyService has finished initializing (any initial
|
| // policy load activity has completed and the CloudPolicyClient has
|
| @@ -110,4 +111,4 @@ class CloudPolicyService : public CloudPolicyClient::Observer,
|
|
|
| } // namespace policy
|
|
|
| -#endif // CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_SERVICE_H_
|
| +#endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_SERVICE_H_
|
|
|