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

Side by Side Diff: chrome/browser/chromeos/arc/arc_support_host.h

Issue 2765523002: arc: Add explicit error message in case network cannot be setup. (Closed)
Patch Set: sort enums Created 3 years, 9 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 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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/arc/arc_session_manager.cc ('k') | chrome/browser/chromeos/arc/arc_support_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698