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_POLICY_MESSAGE_UTIL_H_ | 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_MESSAGE_UTIL_H_ |
6 #define CHROME_BROWSER_POLICY_MESSAGE_UTIL_H_ | 6 #define CHROME_BROWSER_POLICY_CLOUD_MESSAGE_UTIL_H_ |
7 | 7 |
8 #include "base/string16.h" | 8 #include "base/string16.h" |
9 #include "chrome/browser/policy/cloud_policy_constants.h" | 9 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" |
10 #include "chrome/browser/policy/cloud_policy_store.h" | 10 #include "chrome/browser/policy/cloud/cloud_policy_store.h" |
11 #include "chrome/browser/policy/cloud_policy_validator.h" | 11 #include "chrome/browser/policy/cloud/cloud_policy_validator.h" |
12 | 12 |
13 namespace policy { | 13 namespace policy { |
14 | 14 |
15 // Returns a string describing |status| suitable for display in UI. | 15 // Returns a string describing |status| suitable for display in UI. |
16 string16 FormatDeviceManagementStatus(DeviceManagementStatus status); | 16 string16 FormatDeviceManagementStatus(DeviceManagementStatus status); |
17 | 17 |
18 // Returns a string describing |validation_status| suitable for display in UI. | 18 // Returns a string describing |validation_status| suitable for display in UI. |
19 string16 FormatValidationStatus( | 19 string16 FormatValidationStatus( |
20 CloudPolicyValidatorBase::Status validation_status); | 20 CloudPolicyValidatorBase::Status validation_status); |
21 | 21 |
22 // Returns a textual description of |store_status| for display in the UI. If | 22 // Returns a textual description of |store_status| for display in the UI. If |
23 // |store_status| is STATUS_VALIDATION_FAILED, |validation_status| will be | 23 // |store_status| is STATUS_VALIDATION_FAILED, |validation_status| will be |
24 // consulted to create a description of the validation failure. | 24 // consulted to create a description of the validation failure. |
25 string16 FormatStoreStatus(CloudPolicyStore::Status store_status, | 25 string16 FormatStoreStatus(CloudPolicyStore::Status store_status, |
26 CloudPolicyValidatorBase::Status validation_status); | 26 CloudPolicyValidatorBase::Status validation_status); |
27 | 27 |
28 } // namespace policy | 28 } // namespace policy |
29 | 29 |
30 #endif // CHROME_BROWSER_POLICY_MESSAGE_UTIL_H_ | 30 #endif // CHROME_BROWSER_POLICY_CLOUD_MESSAGE_UTIL_H_ |
OLD | NEW |