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

Unified Diff: chrome/browser/chromeos/login/screens/network_error.h

Issue 872633008: Migrate (Network)ErrorScreen to ScreenContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/screens/network_error.h
diff --git a/chrome/browser/chromeos/login/screens/network_error.h b/chrome/browser/chromeos/login/screens/network_error.h
new file mode 100644
index 0000000000000000000000000000000000000000..2a9062bf18670fad4f13e2f5c075f63005678cba
--- /dev/null
+++ b/chrome/browser/chromeos/login/screens/network_error.h
@@ -0,0 +1,57 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_ERROR_H_
+#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_ERROR_H_
+
+namespace chromeos {
+
+class NetworkError {
+ public:
+ enum UIState {
+ UI_STATE_UNKNOWN = 0,
+ UI_STATE_UPDATE,
+ UI_STATE_SIGNIN,
+ UI_STATE_SUPERVISED,
+ UI_STATE_KIOSK_MODE,
+ UI_STATE_LOCAL_STATE_ERROR,
+ UI_STATE_AUTO_ENROLLMENT_ERROR,
+ UI_STATE_ROLLBACK_ERROR,
+ };
+
+ enum ErrorState {
+ ERROR_STATE_UNKNOWN = 0,
+ ERROR_STATE_PORTAL,
+ ERROR_STATE_OFFLINE,
+ ERROR_STATE_PROXY,
+ ERROR_STATE_AUTH_EXT_TIMEOUT,
+ ERROR_STATE_NONE,
+ // States above are being logged to histograms.
+ // Please keep ERROR_STATE_NONE as the last one of the histogram values.
+ // ERROR_STATE_KIOSK_ONLINE is a special case (not an actual error) and is
+ // not reported in histogram.
+ ERROR_STATE_KIOSK_ONLINE,
+ };
+
+ // Possible network error reasons.
+ enum ErrorReason {
+ ERROR_REASON_PROXY_AUTH_CANCELLED = 0,
+ ERROR_REASON_PROXY_AUTH_SUPPLIED,
+ ERROR_REASON_PROXY_CONNECTION_FAILED,
+ ERROR_REASON_PROXY_CONFIG_CHANGED,
+ ERROR_REASON_LOADING_TIMEOUT,
+ ERROR_REASON_PORTAL_DETECTED,
+ // Reason for a case when default network has changed.
+ ERROR_REASON_NETWORK_STATE_CHANGED,
+ // Reason for a case when JS side requires error screen update.
+ ERROR_REASON_UPDATE,
+ ERROR_REASON_FRAME_ERROR
+ };
+
+ static const char* ErrorReasonString(ErrorReason reason);
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_ERROR_H_

Powered by Google App Engine
This is Rietveld 408576698