| 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 #ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ | 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ |
| 6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ | 6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "components/policy/policy_export.h" | 10 #include "components/policy/policy_export.h" |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 // deprecated, we still check for this device | 119 // deprecated, we still check for this device |
| 120 // mode so that if an existing device is | 120 // mode so that if an existing device is |
| 121 // still enrolled in retail mode, we take the | 121 // still enrolled in retail mode, we take the |
| 122 // appropriate action (currently, launching | 122 // appropriate action (currently, launching |
| 123 // offline demo mode). | 123 // offline demo mode). |
| 124 DEVICE_MODE_CONSUMER_KIOSK_AUTOLAUNCH, // The device is locally owned as | 124 DEVICE_MODE_CONSUMER_KIOSK_AUTOLAUNCH, // The device is locally owned as |
| 125 // consumer kiosk with ability to auto | 125 // consumer kiosk with ability to auto |
| 126 // launch a kiosk webapp. | 126 // launch a kiosk webapp. |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 // An enum that indicates if a device that has a local owner, is enterprise- | |
| 130 // managed, or is consumer-managed. This is a copy of ManagementMode in | |
| 131 // PolicyData. See device_management_backend.proto for the explanation of each | |
| 132 // mode. | |
| 133 enum ManagementMode { | |
| 134 MANAGEMENT_MODE_LOCAL_OWNER = 0, | |
| 135 MANAGEMENT_MODE_ENTERPRISE_MANAGED = 1, | |
| 136 MANAGEMENT_MODE_CONSUMER_MANAGED = 2, | |
| 137 }; | |
| 138 | |
| 139 // Sets management mode field in the |policy_data|. | |
| 140 POLICY_EXPORT void SetManagementMode( | |
| 141 enterprise_management::PolicyData& policy_data, | |
| 142 ManagementMode mode); | |
| 143 | |
| 144 // Returns the management mode of |policy_data|. You should use this function | |
| 145 // instead of using |management_mode| in |policy_data| to handle legacy | |
| 146 // |policy_data| that doesn't have |management_mode| set. | |
| 147 POLICY_EXPORT ManagementMode GetManagementMode( | |
| 148 const enterprise_management::PolicyData& policy_data); | |
| 149 | |
| 150 } // namespace policy | 129 } // namespace policy |
| 151 | 130 |
| 152 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ | 131 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ |
| OLD | NEW |