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 CHROME_BROWSER_CHROMEOS_POLICY_ENROLLMENT_STATUS_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_ENROLLMENT_STATUS_CHROMEOS_H_ |
6 #define CHROME_BROWSER_CHROMEOS_POLICY_ENROLLMENT_STATUS_CHROMEOS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_ENROLLMENT_STATUS_CHROMEOS_H_ |
7 | 7 |
8 #include "chrome/browser/chromeos/settings/install_attributes.h" | 8 #include "chrome/browser/chromeos/settings/install_attributes.h" |
9 #include "components/policy/core/common/cloud/cloud_policy_constants.h" | 9 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
10 #include "components/policy/core/common/cloud/cloud_policy_store.h" | 10 #include "components/policy/core/common/cloud/cloud_policy_store.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 /* LOCK_WRONG_USER = 11, */ // Unused: Locked to different domain. | 36 /* LOCK_WRONG_USER = 11, */ // Unused: Locked to different domain. |
37 STORE_ERROR = 12, // Failed to store the policy. | 37 STORE_ERROR = 12, // Failed to store the policy. |
38 /* STORE_TOKEN_AND_ID_FAILED = 13, */ // Unused: Failed to store DM token | 38 /* STORE_TOKEN_AND_ID_FAILED = 13, */ // Unused: Failed to store DM token |
39 // and device ID. | 39 // and device ID. |
40 ATTRIBUTE_UPDATE_FAILED = 14, // Device attribute update failed. | 40 ATTRIBUTE_UPDATE_FAILED = 14, // Device attribute update failed. |
41 REGISTRATION_CERT_FETCH_FAILED = 15, // Cannot obtain registration cert. | 41 REGISTRATION_CERT_FETCH_FAILED = 15, // Cannot obtain registration cert. |
42 NO_MACHINE_IDENTIFICATION = 16, // Machine model or serial missing. | 42 NO_MACHINE_IDENTIFICATION = 16, // Machine model or serial missing. |
43 ACTIVE_DIRECTORY_POLICY_FETCH_FAILED = 17, // Failed to fetch Active | 43 ACTIVE_DIRECTORY_POLICY_FETCH_FAILED = 17, // Failed to fetch Active |
44 // Directory policy via | 44 // Directory policy via |
45 // authpolicyd. | 45 // authpolicyd. |
46 DM_TOKEN_STORE_FAILED = 18, // Failed to store DM token into the | 46 DM_TOKEN_STORE_FAILED = 18, // Failed to store DM token into the |
47 // local state. | 47 // local state. |
| 48 LICENSE_REQUEST_FAILED = 19, // Failed to get available license types. |
48 }; | 49 }; |
49 | 50 |
50 // Helpers for constructing errors for relevant cases. | 51 // Helpers for constructing errors for relevant cases. |
51 static EnrollmentStatus ForStatus(Status status); | 52 static EnrollmentStatus ForStatus(Status status); |
52 static EnrollmentStatus ForRegistrationError( | 53 static EnrollmentStatus ForRegistrationError( |
53 DeviceManagementStatus client_status); | 54 DeviceManagementStatus client_status); |
54 static EnrollmentStatus ForFetchError(DeviceManagementStatus client_status); | 55 static EnrollmentStatus ForFetchError(DeviceManagementStatus client_status); |
55 static EnrollmentStatus ForRobotAuthFetchError( | 56 static EnrollmentStatus ForRobotAuthFetchError( |
56 DeviceManagementStatus client_status); | 57 DeviceManagementStatus client_status); |
57 static EnrollmentStatus ForRobotRefreshFetchError(int http_status); | 58 static EnrollmentStatus ForRobotRefreshFetchError(int http_status); |
(...skipping 28 matching lines...) Expand all Loading... |
86 DeviceManagementStatus client_status_; | 87 DeviceManagementStatus client_status_; |
87 int http_status_; | 88 int http_status_; |
88 CloudPolicyStore::Status store_status_; | 89 CloudPolicyStore::Status store_status_; |
89 CloudPolicyValidatorBase::Status validation_status_; | 90 CloudPolicyValidatorBase::Status validation_status_; |
90 chromeos::InstallAttributes::LockResult lock_status_; | 91 chromeos::InstallAttributes::LockResult lock_status_; |
91 }; | 92 }; |
92 | 93 |
93 } // namespace policy | 94 } // namespace policy |
94 | 95 |
95 #endif // CHROME_BROWSER_CHROMEOS_POLICY_ENROLLMENT_STATUS_CHROMEOS_H_ | 96 #endif // CHROME_BROWSER_CHROMEOS_POLICY_ENROLLMENT_STATUS_CHROMEOS_H_ |
OLD | NEW |