| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/policy/cloud_policy_constants.h" | |
| 6 | |
| 7 namespace policy { | |
| 8 | |
| 9 // Constants related to the device management protocol. | |
| 10 namespace dm_protocol { | |
| 11 | |
| 12 // Name constants for URL query parameters. | |
| 13 const char kParamAgent[] = "agent"; | |
| 14 const char kParamAppType[] = "apptype"; | |
| 15 const char kParamDeviceID[] = "deviceid"; | |
| 16 const char kParamDeviceType[] = "devicetype"; | |
| 17 const char kParamOAuthToken[] = "oauth_token"; | |
| 18 const char kParamPlatform[] = "platform"; | |
| 19 const char kParamRequest[] = "request"; | |
| 20 const char kParamUserAffiliation[] = "user_affiliation"; | |
| 21 | |
| 22 // String constants for the device and app type we report to the server. | |
| 23 const char kValueAppType[] = "Chrome"; | |
| 24 const char kValueDeviceType[] = "2"; | |
| 25 const char kValueRequestAutoEnrollment[] = "enterprise_check"; | |
| 26 const char kValueRequestPolicy[] = "policy"; | |
| 27 const char kValueRequestRegister[] = "register"; | |
| 28 const char kValueRequestUnregister[] = "unregister"; | |
| 29 const char kValueUserAffiliationManaged[] = "managed"; | |
| 30 const char kValueUserAffiliationNone[] = "none"; | |
| 31 | |
| 32 const char kChromeDevicePolicyType[] = "google/chromeos/device"; | |
| 33 #if defined(OS_CHROMEOS) | |
| 34 const char kChromeUserPolicyType[] = "google/chromeos/user"; | |
| 35 #else | |
| 36 const char kChromeUserPolicyType[] = "google/chrome/user"; | |
| 37 #endif | |
| 38 const char kChromePublicAccountPolicyType[] = "google/chromeos/publicaccount"; | |
| 39 const char kChromeExtensionPolicyType[] = "google/chrome/extension"; | |
| 40 | |
| 41 } // namespace dm_protocol | |
| 42 | |
| 43 } // namespace policy | |
| OLD | NEW |