| Index: components/policy/core/common/cloud/cloud_policy_validator.h
|
| diff --git a/chrome/browser/policy/cloud/cloud_policy_validator.h b/components/policy/core/common/cloud/cloud_policy_validator.h
|
| similarity index 96%
|
| rename from chrome/browser/policy/cloud/cloud_policy_validator.h
|
| rename to components/policy/core/common/cloud/cloud_policy_validator.h
|
| index 5b6ed4bd4f8642bde7232f45ee6446d300b7861d..6e43b91c42f6107ead2581e7e37bb90cdf36861b 100644
|
| --- a/chrome/browser/policy/cloud/cloud_policy_validator.h
|
| +++ b/components/policy/core/common/cloud/cloud_policy_validator.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_VALIDATOR_H_
|
| -#define CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_VALIDATOR_H_
|
| +#ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_VALIDATOR_H_
|
| +#define COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_VALIDATOR_H_
|
|
|
| #include <string>
|
| #include <vector>
|
| @@ -16,6 +16,7 @@
|
| #include "base/sequenced_task_runner.h"
|
| #include "base/time/time.h"
|
| #include "chrome/browser/policy/proto/cloud/chrome_extension_policy.pb.h"
|
| +#include "components/policy/policy_export.h"
|
| #include "policy/proto/cloud_policy.pb.h"
|
|
|
| namespace base {
|
| @@ -40,7 +41,7 @@ namespace policy {
|
| // thread. The pattern is to create a validator, configure its behavior through
|
| // the ValidateXYZ() functions, and then call StartValidation(). Alternatively,
|
| // RunValidation() can be used to perform validation on the current thread.
|
| -class CloudPolicyValidatorBase {
|
| +class POLICY_EXPORT CloudPolicyValidatorBase {
|
| public:
|
| // Validation result codes. These values are also used for UMA histograms;
|
| // they must stay stable, and the UMA counters must be updated if new elements
|
| @@ -247,7 +248,7 @@ class CloudPolicyValidatorBase {
|
| // A simple type-parameterized extension of CloudPolicyValidator that
|
| // facilitates working with the actual protobuf payload type.
|
| template<typename PayloadProto>
|
| -class CloudPolicyValidator : public CloudPolicyValidatorBase {
|
| +class POLICY_EXPORT CloudPolicyValidator : public CloudPolicyValidatorBase {
|
| public:
|
| typedef base::Callback<void(CloudPolicyValidator<PayloadProto>*)>
|
| CompletionCallback;
|
| @@ -300,4 +301,4 @@ typedef CloudPolicyValidator<enterprise_management::ExternalPolicyData>
|
|
|
| } // namespace policy
|
|
|
| -#endif // CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_VALIDATOR_H_
|
| +#endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_VALIDATOR_H_
|
|
|