| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" | 5 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" |
| 6 | 6 |
| 7 namespace policy { | 7 namespace policy { |
| 8 | 8 |
| 9 // Constants related to the device management protocol. | 9 // Constants related to the device management protocol. |
| 10 namespace dm_protocol { | 10 namespace dm_protocol { |
| 11 | 11 |
| 12 // Name constants for URL query parameters. | 12 // Name constants for URL query parameters. |
| 13 const char kParamAgent[] = "agent"; | 13 const char kParamAgent[] = "agent"; |
| 14 const char kParamAppType[] = "apptype"; | 14 const char kParamAppType[] = "apptype"; |
| 15 const char kParamDeviceID[] = "deviceid"; | 15 const char kParamDeviceID[] = "deviceid"; |
| 16 const char kParamDeviceType[] = "devicetype"; | 16 const char kParamDeviceType[] = "devicetype"; |
| 17 const char kParamOAuthToken[] = "oauth_token"; | 17 const char kParamOAuthToken[] = "oauth_token"; |
| 18 const char kParamPlatform[] = "platform"; | 18 const char kParamPlatform[] = "platform"; |
| 19 const char kParamRequest[] = "request"; | 19 const char kParamRequest[] = "request"; |
| 20 const char kParamUserAffiliation[] = "user_affiliation"; | 20 const char kParamUserAffiliation[] = "user_affiliation"; |
| 21 | 21 |
| 22 // String constants for the device and app type we report to the server. | 22 // String constants for the device and app type we report to the server. |
| 23 const char kValueAppType[] = "Chrome"; | 23 const char kValueAppType[] = "Chrome"; |
| 24 const char kValueDeviceType[] = "2"; | 24 const char kValueDeviceType[] = "2"; |
| 25 const char kValueRequestAutoEnrollment[] = "enterprise_check"; | 25 const char kValueRequestAutoEnrollment[] = "enterprise_check"; |
| 26 const char kValueRequestPolicy[] = "policy"; | 26 const char kValueRequestPolicy[] = "policy"; |
| 27 const char kValueRequestRegister[] = "register"; | 27 const char kValueRequestRegister[] = "register"; |
| 28 const char kValueRequestApiAuthorization[] = "api_authorization"; |
| 28 const char kValueRequestUnregister[] = "unregister"; | 29 const char kValueRequestUnregister[] = "unregister"; |
| 29 const char kValueRequestUploadCertificate[] = "cert_upload"; | 30 const char kValueRequestUploadCertificate[] = "cert_upload"; |
| 30 const char kValueUserAffiliationManaged[] = "managed"; | 31 const char kValueUserAffiliationManaged[] = "managed"; |
| 31 const char kValueUserAffiliationNone[] = "none"; | 32 const char kValueUserAffiliationNone[] = "none"; |
| 32 | 33 |
| 33 const char kChromeDevicePolicyType[] = "google/chromeos/device"; | 34 const char kChromeDevicePolicyType[] = "google/chromeos/device"; |
| 34 #if defined(OS_CHROMEOS) | 35 #if defined(OS_CHROMEOS) |
| 35 const char kChromeUserPolicyType[] = "google/chromeos/user"; | 36 const char kChromeUserPolicyType[] = "google/chromeos/user"; |
| 36 #else | 37 #else |
| 37 const char kChromeUserPolicyType[] = "google/chrome/user"; | 38 const char kChromeUserPolicyType[] = "google/chrome/user"; |
| 38 #endif | 39 #endif |
| 39 const char kChromePublicAccountPolicyType[] = "google/chromeos/publicaccount"; | 40 const char kChromePublicAccountPolicyType[] = "google/chromeos/publicaccount"; |
| 40 const char kChromeExtensionPolicyType[] = "google/chrome/extension"; | 41 const char kChromeExtensionPolicyType[] = "google/chrome/extension"; |
| 41 | 42 |
| 42 } // namespace dm_protocol | 43 } // namespace dm_protocol |
| 43 | 44 |
| 44 } // namespace policy | 45 } // namespace policy |
| OLD | NEW |