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

Side by Side Diff: chrome/browser/policy/cloud_policy_constants.h

Issue 10928036: Implement Chrome OS device enrollment on the new cloud policy stack. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
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 CHROME_BROWSER_POLICY_CLOUD_POLICY_CONSTANTS_H_ 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_POLICY_CONSTANTS_H_
6 #define CHROME_BROWSER_POLICY_CLOUD_POLICY_CONSTANTS_H_ 6 #define CHROME_BROWSER_POLICY_CLOUD_POLICY_CONSTANTS_H_
7 7
8 namespace policy { 8 namespace policy {
9 9
10 // Constants related to the device management protocol. 10 // Constants related to the device management protocol.
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 // List of modes that the device can be locked into. 85 // List of modes that the device can be locked into.
86 enum DeviceMode { 86 enum DeviceMode {
87 DEVICE_MODE_PENDING, // The device mode is not yet available. 87 DEVICE_MODE_PENDING, // The device mode is not yet available.
88 DEVICE_MODE_NOT_SET, // The device is not yet enrolled or owned. 88 DEVICE_MODE_NOT_SET, // The device is not yet enrolled or owned.
89 DEVICE_MODE_CONSUMER, // The device is locally owned as consumer device. 89 DEVICE_MODE_CONSUMER, // The device is locally owned as consumer device.
90 DEVICE_MODE_ENTERPRISE, // The device is enrolled as an enterprise device. 90 DEVICE_MODE_ENTERPRISE, // The device is enrolled as an enterprise device.
91 DEVICE_MODE_KIOSK, // The device is enrolled as kiosk/retail device. 91 DEVICE_MODE_KIOSK, // The device is enrolled as kiosk/retail device.
92 }; 92 };
93 93
94 // Enrollment status codes.
95 enum EnrollmentStatus {
96 ENROLLMENT_STATUS_SUCCESS, // Enrollment succeeded.
97 ENROLLMENT_STATUS_REGISTRATION_FAILED, // DM registration failed.
98 ENROLLMENT_STATUS_POLICY_FETCH_FAILED, // DM policy fetch failed.
99 ENROLLMENT_STATUS_VALIDATION_FAILED, // Policy validation failed.
100 ENROLLMENT_STATUS_LOCK_ERROR, // Device locking failed.
101 ENROLLMENT_STATUS_LOCK_WRONG_USER, // Locked to different domain already.
102 ENROLLMENT_STATUS_STORE_ERROR, // Failed to store the policy.
103 };
104
105
Joao da Silva 2012/09/07 14:01:42 nit: remove extra newline
Mattias Nissler (ping if slow) 2012/10/23 15:30:41 Done.
94 } // namespace policy 106 } // namespace policy
95 107
96 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_CONSTANTS_H_ 108 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698