| Index: components/policy/core/common/cloud/device_management_service.h
|
| diff --git a/chrome/browser/policy/cloud/device_management_service.h b/components/policy/core/common/cloud/device_management_service.h
|
| similarity index 92%
|
| rename from chrome/browser/policy/cloud/device_management_service.h
|
| rename to components/policy/core/common/cloud/device_management_service.h
|
| index 12ee862305fd47884f647f93230d4e15a2ffa67f..d76405e6d9e3d8336cc33ae84010b3ce77d52c44 100644
|
| --- a/chrome/browser/policy/cloud/device_management_service.h
|
| +++ b/components/policy/core/common/cloud/device_management_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_DEVICE_MANAGEMENT_SERVICE_H_
|
| -#define CHROME_BROWSER_POLICY_CLOUD_DEVICE_MANAGEMENT_SERVICE_H_
|
| +#ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_DEVICE_MANAGEMENT_SERVICE_H_
|
| +#define COMPONENTS_POLICY_CORE_COMMON_CLOUD_DEVICE_MANAGEMENT_SERVICE_H_
|
|
|
| #include <deque>
|
| #include <map>
|
| @@ -14,8 +14,9 @@
|
| #include "base/callback.h"
|
| #include "base/compiler_specific.h"
|
| #include "base/memory/weak_ptr.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"
|
| #include "net/url_request/url_fetcher_delegate.h"
|
|
|
| namespace net {
|
| @@ -30,7 +31,7 @@ class DeviceManagementService;
|
| // DeviceManagementRequestJob describes a request to send to the device
|
| // management service. Jobs are created by DeviceManagementService. They can be
|
| // canceled by deleting the object.
|
| -class DeviceManagementRequestJob {
|
| +class POLICY_EXPORT DeviceManagementRequestJob {
|
| public:
|
| // Describes the job type.
|
| enum JobType {
|
| @@ -98,13 +99,13 @@ class DeviceManagementRequestJob {
|
| // communication with the device management server. It creates the backends
|
| // objects that the device management policy provider and friends use to issue
|
| // requests.
|
| -class DeviceManagementService : public net::URLFetcherDelegate {
|
| +class POLICY_EXPORT DeviceManagementService : public net::URLFetcherDelegate {
|
| public:
|
| // Obtains the parameters used to contact the server.
|
| // This allows creating the DeviceManagementService early and getting these
|
| // parameters later. Passing the parameters directly in the ctor isn't
|
| // possible because some aren't ready during startup. http://crbug.com/302798
|
| - class Configuration {
|
| + class POLICY_EXPORT Configuration {
|
| public:
|
| virtual ~Configuration() {}
|
|
|
| @@ -187,4 +188,4 @@ class DeviceManagementService : public net::URLFetcherDelegate {
|
|
|
| } // namespace policy
|
|
|
| -#endif // CHROME_BROWSER_POLICY_CLOUD_DEVICE_MANAGEMENT_SERVICE_H_
|
| +#endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_DEVICE_MANAGEMENT_SERVICE_H_
|
|
|