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 kValueUserAffiliationManaged[] = "managed"; | 30 const char kValueUserAffiliationManaged[] = "managed"; |
30 const char kValueUserAffiliationNone[] = "none"; | 31 const char kValueUserAffiliationNone[] = "none"; |
31 | 32 |
32 const char kChromeDevicePolicyType[] = "google/chromeos/device"; | 33 const char kChromeDevicePolicyType[] = "google/chromeos/device"; |
33 #if defined(OS_CHROMEOS) | 34 #if defined(OS_CHROMEOS) |
34 const char kChromeUserPolicyType[] = "google/chromeos/user"; | 35 const char kChromeUserPolicyType[] = "google/chromeos/user"; |
35 #else | 36 #else |
36 const char kChromeUserPolicyType[] = "google/chrome/user"; | 37 const char kChromeUserPolicyType[] = "google/chrome/user"; |
37 #endif | 38 #endif |
38 const char kChromePublicAccountPolicyType[] = "google/chromeos/publicaccount"; | 39 const char kChromePublicAccountPolicyType[] = "google/chromeos/publicaccount"; |
39 const char kChromeExtensionPolicyType[] = "google/chrome/extension"; | 40 const char kChromeExtensionPolicyType[] = "google/chrome/extension"; |
40 | 41 |
41 } // namespace dm_protocol | 42 } // namespace dm_protocol |
42 | 43 |
43 } // namespace policy | 44 } // namespace policy |
OLD | NEW |