Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Side by Side Diff: components/policy/core/common/cloud/cloud_policy_constants.h

Issue 2261763002: Device enterprise registration with a certificate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initialize pointers to nullptr. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 25 matching lines...) Expand all
36 POLICY_EXPORT extern const char kValueRequestApiAuthorization[]; 36 POLICY_EXPORT extern const char kValueRequestApiAuthorization[];
37 POLICY_EXPORT extern const char kValueRequestUnregister[]; 37 POLICY_EXPORT extern const char kValueRequestUnregister[];
38 POLICY_EXPORT extern const char kValueRequestUploadCertificate[]; 38 POLICY_EXPORT extern const char kValueRequestUploadCertificate[];
39 POLICY_EXPORT extern const char kValueRequestDeviceStateRetrieval[]; 39 POLICY_EXPORT extern const char kValueRequestDeviceStateRetrieval[];
40 POLICY_EXPORT extern const char kValueRequestUploadStatus[]; 40 POLICY_EXPORT extern const char kValueRequestUploadStatus[];
41 POLICY_EXPORT extern const char kValueRequestRemoteCommands[]; 41 POLICY_EXPORT extern const char kValueRequestRemoteCommands[];
42 POLICY_EXPORT extern const char kValueRequestDeviceAttributeUpdatePermission[]; 42 POLICY_EXPORT extern const char kValueRequestDeviceAttributeUpdatePermission[];
43 POLICY_EXPORT extern const char kValueRequestDeviceAttributeUpdate[]; 43 POLICY_EXPORT extern const char kValueRequestDeviceAttributeUpdate[];
44 POLICY_EXPORT extern const char kValueRequestGcmIdUpdate[]; 44 POLICY_EXPORT extern const char kValueRequestGcmIdUpdate[];
45 POLICY_EXPORT extern const char kValueRequestCheckAndroidManagement[]; 45 POLICY_EXPORT extern const char kValueRequestCheckAndroidManagement[];
46 POLICY_EXPORT extern const char kValueRequestCertBasedRegister[];
46 47
47 // Policy type strings for the policy_type field in PolicyFetchRequest. 48 // Policy type strings for the policy_type field in PolicyFetchRequest.
48 POLICY_EXPORT extern const char kChromeDevicePolicyType[]; 49 POLICY_EXPORT extern const char kChromeDevicePolicyType[];
49 POLICY_EXPORT extern const char kChromeUserPolicyType[]; 50 POLICY_EXPORT extern const char kChromeUserPolicyType[];
50 POLICY_EXPORT extern const char kChromePublicAccountPolicyType[]; 51 POLICY_EXPORT extern const char kChromePublicAccountPolicyType[];
51 POLICY_EXPORT extern const char kChromeExtensionPolicyType[]; 52 POLICY_EXPORT extern const char kChromeExtensionPolicyType[];
52 53
53 // These codes are sent in the |error_code| field of PolicyFetchResponse. 54 // These codes are sent in the |error_code| field of PolicyFetchResponse.
54 enum PolicyFetchStatus { 55 enum PolicyFetchStatus {
55 POLICY_FETCH_SUCCESS = 200, 56 POLICY_FETCH_SUCCESS = 200,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // Service error: The serial number is not valid or not known to the server. 96 // Service error: The serial number is not valid or not known to the server.
96 DM_STATUS_SERVICE_INVALID_SERIAL_NUMBER = 10, 97 DM_STATUS_SERVICE_INVALID_SERIAL_NUMBER = 10,
97 // Service error: The device id used for registration is already taken. 98 // Service error: The device id used for registration is already taken.
98 DM_STATUS_SERVICE_DEVICE_ID_CONFLICT = 11, 99 DM_STATUS_SERVICE_DEVICE_ID_CONFLICT = 11,
99 // Service error: The licenses have expired or have been exhausted. 100 // Service error: The licenses have expired or have been exhausted.
100 DM_STATUS_SERVICE_MISSING_LICENSES = 12, 101 DM_STATUS_SERVICE_MISSING_LICENSES = 12,
101 // Service error: The administrator has deprovisioned this client. 102 // Service error: The administrator has deprovisioned this client.
102 DM_STATUS_SERVICE_DEPROVISIONED = 13, 103 DM_STATUS_SERVICE_DEPROVISIONED = 13,
103 // Service error: Device registration for the wrong domain. 104 // Service error: Device registration for the wrong domain.
104 DM_STATUS_SERVICE_DOMAIN_MISMATCH = 14, 105 DM_STATUS_SERVICE_DOMAIN_MISMATCH = 14,
106 // Client error: Reuest could not be signed.
107 DM_STATUS_CANNOT_SIGN_REQUEST = 15,
105 // Service error: Policy not found. Error code defined by the DM folks. 108 // Service error: Policy not found. Error code defined by the DM folks.
106 DM_STATUS_SERVICE_POLICY_NOT_FOUND = 902, 109 DM_STATUS_SERVICE_POLICY_NOT_FOUND = 902,
107 }; 110 };
108 111
109 // List of modes that the device can be locked into. 112 // List of modes that the device can be locked into.
110 enum DeviceMode { 113 enum DeviceMode {
111 DEVICE_MODE_PENDING, // The device mode is not yet available. 114 DEVICE_MODE_PENDING, // The device mode is not yet available.
112 DEVICE_MODE_NOT_SET, // The device is not yet enrolled or owned. 115 DEVICE_MODE_NOT_SET, // The device is not yet enrolled or owned.
113 DEVICE_MODE_CONSUMER, // The device is locally owned as consumer 116 DEVICE_MODE_CONSUMER, // The device is locally owned as consumer
114 // device. 117 // device.
115 DEVICE_MODE_ENTERPRISE, // The device is enrolled as an enterprise 118 DEVICE_MODE_ENTERPRISE, // The device is enrolled as an enterprise
116 // device. 119 // device.
117 DEVICE_MODE_LEGACY_RETAIL_MODE, // The device is enrolled as a retail kiosk 120 DEVICE_MODE_LEGACY_RETAIL_MODE, // The device is enrolled as a retail kiosk
118 // device. Even though retail mode is 121 // device. Even though retail mode is
119 // deprecated, we still check for this device 122 // deprecated, we still check for this device
120 // mode so that if an existing device is 123 // mode so that if an existing device is
121 // still enrolled in retail mode, we take the 124 // still enrolled in retail mode, we take the
122 // appropriate action (currently, launching 125 // appropriate action (currently, launching
123 // offline demo mode). 126 // offline demo mode).
124 DEVICE_MODE_CONSUMER_KIOSK_AUTOLAUNCH, // The device is locally owned as 127 DEVICE_MODE_CONSUMER_KIOSK_AUTOLAUNCH, // The device is locally owned as
125 // consumer kiosk with ability to auto 128 // consumer kiosk with ability to auto
126 // launch a kiosk webapp. 129 // launch a kiosk webapp.
127 }; 130 };
128 131
129 } // namespace policy 132 } // namespace policy
130 133
131 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ 134 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698