| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_ARC_ARC_SUPPORT_HOST_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_SUPPORT_HOST_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_SUPPORT_HOST_H_ | 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_SUPPORT_HOST_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 enum class UIPage { | 26 enum class UIPage { |
| 27 NO_PAGE, // Hide everything. | 27 NO_PAGE, // Hide everything. |
| 28 TERMS, // Terms content page. | 28 TERMS, // Terms content page. |
| 29 LSO, // LSO page to enter user's credentials. | 29 LSO, // LSO page to enter user's credentials. |
| 30 ARC_LOADING, // ARC loading progress page. | 30 ARC_LOADING, // ARC loading progress page. |
| 31 ERROR, // ARC start error page. | 31 ERROR, // ARC start error page. |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 // Error types whose corresponding message ARC support has. | 34 // Error types whose corresponding message ARC support has. |
| 35 enum class Error { | 35 enum class Error { |
| 36 ANDROID_MANAGEMENT_REQUIRED_ERROR, |
| 37 NETWORK_UNAVAILABLE_ERROR, |
| 38 SERVER_COMMUNICATION_ERROR, |
| 39 SIGN_IN_BAD_AUTHENTICATION_ERROR, |
| 40 SIGN_IN_CLOUD_PROVISION_FLOW_FAIL_ERROR, |
| 41 SIGN_IN_GMS_NOT_AVAILABLE_ERROR, |
| 36 SIGN_IN_NETWORK_ERROR, | 42 SIGN_IN_NETWORK_ERROR, |
| 37 SIGN_IN_SERVICE_UNAVAILABLE_ERROR, | 43 SIGN_IN_SERVICE_UNAVAILABLE_ERROR, |
| 38 SIGN_IN_BAD_AUTHENTICATION_ERROR, | |
| 39 SIGN_IN_GMS_NOT_AVAILABLE_ERROR, | |
| 40 SIGN_IN_CLOUD_PROVISION_FLOW_FAIL_ERROR, | |
| 41 SIGN_IN_UNKNOWN_ERROR, | 44 SIGN_IN_UNKNOWN_ERROR, |
| 42 SERVER_COMMUNICATION_ERROR, | |
| 43 ANDROID_MANAGEMENT_REQUIRED_ERROR, | |
| 44 }; | 45 }; |
| 45 | 46 |
| 46 // Observer to notify UI event. | 47 // Observer to notify UI event. |
| 47 class Observer { | 48 class Observer { |
| 48 public: | 49 public: |
| 49 virtual ~Observer() = default; | 50 virtual ~Observer() = default; |
| 50 | 51 |
| 51 // Called when the ARC support window is closed. | 52 // Called when the ARC support window is closed. |
| 52 virtual void OnWindowClosed() {} | 53 virtual void OnWindowClosed() {} |
| 53 | 54 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 bool is_arc_managed_ = false; | 187 bool is_arc_managed_ = false; |
| 187 | 188 |
| 188 PreferenceCheckboxData metrics_checkbox_; | 189 PreferenceCheckboxData metrics_checkbox_; |
| 189 PreferenceCheckboxData backup_and_restore_checkbox_; | 190 PreferenceCheckboxData backup_and_restore_checkbox_; |
| 190 PreferenceCheckboxData location_services_checkbox_; | 191 PreferenceCheckboxData location_services_checkbox_; |
| 191 | 192 |
| 192 DISALLOW_COPY_AND_ASSIGN(ArcSupportHost); | 193 DISALLOW_COPY_AND_ASSIGN(ArcSupportHost); |
| 193 }; | 194 }; |
| 194 | 195 |
| 195 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SUPPORT_HOST_H_ | 196 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SUPPORT_HOST_H_ |
| OLD | NEW |