| Index: components/policy/core/common/cloud/cloud_policy_constants.h
|
| diff --git a/chrome/browser/policy/cloud/cloud_policy_constants.h b/components/policy/core/common/cloud/cloud_policy_constants.h
|
| similarity index 67%
|
| rename from chrome/browser/policy/cloud/cloud_policy_constants.h
|
| rename to components/policy/core/common/cloud/cloud_policy_constants.h
|
| index aab6f166b37bd1db15cefe58ec19a8892f0c8d28..a45dcabd60846314800acc39b0606b0a7c026682 100644
|
| --- a/chrome/browser/policy/cloud/cloud_policy_constants.h
|
| +++ b/components/policy/core/common/cloud/cloud_policy_constants.h
|
| @@ -2,44 +2,46 @@
|
| // 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_CONSTANTS_H_
|
| -#define CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_CONSTANTS_H_
|
| +#ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_
|
| +#define COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_
|
|
|
| #include <string>
|
| #include <utility>
|
|
|
| +#include "components/policy/policy_export.h"
|
| +
|
| namespace policy {
|
|
|
| // Constants related to the device management protocol.
|
| namespace dm_protocol {
|
|
|
| // Name extern constants for URL query parameters.
|
| -extern const char kParamAgent[];
|
| -extern const char kParamAppType[];
|
| -extern const char kParamDeviceID[];
|
| -extern const char kParamDeviceType[];
|
| -extern const char kParamOAuthToken[];
|
| -extern const char kParamPlatform[];
|
| -extern const char kParamRequest[];
|
| -extern const char kParamUserAffiliation[];
|
| +POLICY_EXPORT extern const char kParamAgent[];
|
| +POLICY_EXPORT extern const char kParamAppType[];
|
| +POLICY_EXPORT extern const char kParamDeviceID[];
|
| +POLICY_EXPORT extern const char kParamDeviceType[];
|
| +POLICY_EXPORT extern const char kParamOAuthToken[];
|
| +POLICY_EXPORT extern const char kParamPlatform[];
|
| +POLICY_EXPORT extern const char kParamRequest[];
|
| +POLICY_EXPORT extern const char kParamUserAffiliation[];
|
|
|
| // String extern constants for the device and app type we report to the server.
|
| -extern const char kValueAppType[];
|
| -extern const char kValueDeviceType[];
|
| -extern const char kValueRequestAutoEnrollment[];
|
| -extern const char kValueRequestPolicy[];
|
| -extern const char kValueRequestRegister[];
|
| -extern const char kValueRequestApiAuthorization[];
|
| -extern const char kValueRequestUnregister[];
|
| -extern const char kValueRequestUploadCertificate[];
|
| -extern const char kValueUserAffiliationManaged[];
|
| -extern const char kValueUserAffiliationNone[];
|
| +POLICY_EXPORT extern const char kValueAppType[];
|
| +POLICY_EXPORT extern const char kValueDeviceType[];
|
| +POLICY_EXPORT extern const char kValueRequestAutoEnrollment[];
|
| +POLICY_EXPORT extern const char kValueRequestPolicy[];
|
| +POLICY_EXPORT extern const char kValueRequestRegister[];
|
| +POLICY_EXPORT extern const char kValueRequestApiAuthorization[];
|
| +POLICY_EXPORT extern const char kValueRequestUnregister[];
|
| +POLICY_EXPORT extern const char kValueRequestUploadCertificate[];
|
| +POLICY_EXPORT extern const char kValueUserAffiliationManaged[];
|
| +POLICY_EXPORT extern const char kValueUserAffiliationNone[];
|
|
|
| // Policy type strings for the policy_type field in PolicyFetchRequest.
|
| -extern const char kChromeDevicePolicyType[];
|
| -extern const char kChromeUserPolicyType[];
|
| -extern const char kChromePublicAccountPolicyType[];
|
| -extern const char kChromeExtensionPolicyType[];
|
| +POLICY_EXPORT extern const char kChromeDevicePolicyType[];
|
| +POLICY_EXPORT extern const char kChromeUserPolicyType[];
|
| +POLICY_EXPORT extern const char kChromePublicAccountPolicyType[];
|
| +POLICY_EXPORT extern const char kChromeExtensionPolicyType[];
|
|
|
| // These codes are sent in the |error_code| field of PolicyFetchResponse.
|
| enum PolicyFetchStatus {
|
| @@ -108,8 +110,8 @@ typedef std::pair<std::string, std::string> PolicyNamespaceKey;
|
| // default user policy type on Android and iOS for testing purposes.
|
| // TODO(joaodasilva): remove this once the server is ready.
|
| // http://crbug.com/248527
|
| -const char* GetChromeUserPolicyType();
|
| +POLICY_EXPORT const char* GetChromeUserPolicyType();
|
|
|
| } // namespace policy
|
|
|
| -#endif // CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_CONSTANTS_H_
|
| +#endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_
|
|
|