| 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 "components/policy/core/common/cloud/cloud_policy_constants.h" | 5 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 const char kValueRequestUploadCertificate[] = "cert_upload"; | 42 const char kValueRequestUploadCertificate[] = "cert_upload"; |
| 43 const char kValueRequestDeviceStateRetrieval[] = "device_state_retrieval"; | 43 const char kValueRequestDeviceStateRetrieval[] = "device_state_retrieval"; |
| 44 const char kValueRequestUploadStatus[] = "status_upload"; | 44 const char kValueRequestUploadStatus[] = "status_upload"; |
| 45 const char kValueRequestRemoteCommands[] = "remote_commands"; | 45 const char kValueRequestRemoteCommands[] = "remote_commands"; |
| 46 const char kValueRequestDeviceAttributeUpdatePermission[] = | 46 const char kValueRequestDeviceAttributeUpdatePermission[] = |
| 47 "device_attribute_update_permission"; | 47 "device_attribute_update_permission"; |
| 48 const char kValueRequestDeviceAttributeUpdate[] = "device_attribute_update"; | 48 const char kValueRequestDeviceAttributeUpdate[] = "device_attribute_update"; |
| 49 const char kValueRequestGcmIdUpdate[] = "gcm_id_update"; | 49 const char kValueRequestGcmIdUpdate[] = "gcm_id_update"; |
| 50 const char kValueRequestCheckAndroidManagement[] = "check_android_management"; | 50 const char kValueRequestCheckAndroidManagement[] = "check_android_management"; |
| 51 const char kValueRequestCertBasedRegister[] = "certificate_based_register"; | 51 const char kValueRequestCertBasedRegister[] = "certificate_based_register"; |
| 52 const char kValueRequestActiveDirectoryEnrollPlayUser[] = |
| 53 "active_directory_enroll_play_user"; |
| 54 const char kValueRequestActiveDirectoryPlayActivity[] = |
| 55 "active_directory_play_activity"; |
| 52 | 56 |
| 53 const char kChromeDevicePolicyType[] = "google/chromeos/device"; | 57 const char kChromeDevicePolicyType[] = "google/chromeos/device"; |
| 54 #if defined(OS_CHROMEOS) | 58 #if defined(OS_CHROMEOS) |
| 55 const char kChromeUserPolicyType[] = "google/chromeos/user"; | 59 const char kChromeUserPolicyType[] = "google/chromeos/user"; |
| 56 #elif defined(OS_ANDROID) | 60 #elif defined(OS_ANDROID) |
| 57 const char kChromeUserPolicyType[] = "google/android/user"; | 61 const char kChromeUserPolicyType[] = "google/android/user"; |
| 58 #elif defined(OS_IOS) | 62 #elif defined(OS_IOS) |
| 59 const char kChromeUserPolicyType[] = "google/ios/user"; | 63 const char kChromeUserPolicyType[] = "google/ios/user"; |
| 60 #else | 64 #else |
| 61 const char kChromeUserPolicyType[] = "google/chrome/user"; | 65 const char kChromeUserPolicyType[] = "google/chrome/user"; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 0x87, 0x02, 0x03, 0x01, 0x00, 0x01}; | 101 0x87, 0x02, 0x03, 0x01, 0x00, 0x01}; |
| 98 | 102 |
| 99 const char kPolicyVerificationKeyHash[] = "1:356l7w"; | 103 const char kPolicyVerificationKeyHash[] = "1:356l7w"; |
| 100 | 104 |
| 101 std::string GetPolicyVerificationKey() { | 105 std::string GetPolicyVerificationKey() { |
| 102 return std::string(reinterpret_cast<const char*>(kPolicyVerificationKey), | 106 return std::string(reinterpret_cast<const char*>(kPolicyVerificationKey), |
| 103 sizeof(kPolicyVerificationKey)); | 107 sizeof(kPolicyVerificationKey)); |
| 104 } | 108 } |
| 105 | 109 |
| 106 } // namespace policy | 110 } // namespace policy |
| OLD | NEW |