| 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_AUTH_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <ostream> | 9 #include <ostream> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 public: | 50 public: |
| 51 enum class State { | 51 enum class State { |
| 52 NOT_INITIALIZED, // Service is not initialized. | 52 NOT_INITIALIZED, // Service is not initialized. |
| 53 STOPPED, // ARC is not running. | 53 STOPPED, // ARC is not running. |
| 54 FETCHING_CODE, // ARC may be running or not. Auth code is fetching. | 54 FETCHING_CODE, // ARC may be running or not. Auth code is fetching. |
| 55 ACTIVE, // ARC is running. | 55 ACTIVE, // ARC is running. |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 enum class UIPage { | 58 enum class UIPage { |
| 59 NO_PAGE, // Hide everything. | 59 NO_PAGE, // Hide everything. |
| 60 START, // Initial start page. | 60 TERMS_PROGRESS, // Terms loading progress page. |
| 61 TERMS, // Terms content page. |
| 61 LSO_PROGRESS, // LSO loading progress page. | 62 LSO_PROGRESS, // LSO loading progress page. |
| 62 LSO, // LSO page to enter user's credentials. | 63 LSO, // LSO page to enter user's credentials. |
| 63 START_PROGRESS, // Arc starting progress page. | 64 START_PROGRESS, // Arc starting progress page. |
| 64 ERROR, // Arc start error page. | 65 ERROR, // Arc start error page. |
| 65 ERROR_WITH_FEEDBACK, // Arc start error page, plus feedback button. | 66 ERROR_WITH_FEEDBACK, // Arc start error page, plus feedback button. |
| 66 }; | 67 }; |
| 67 | 68 |
| 68 class Observer { | 69 class Observer { |
| 69 public: | 70 public: |
| 70 virtual ~Observer() = default; | 71 virtual ~Observer() = default; |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 base::WeakPtrFactory<ArcAuthService> weak_ptr_factory_; | 215 base::WeakPtrFactory<ArcAuthService> weak_ptr_factory_; |
| 215 | 216 |
| 216 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); | 217 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); |
| 217 }; | 218 }; |
| 218 | 219 |
| 219 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state); | 220 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state); |
| 220 | 221 |
| 221 } // namespace arc | 222 } // namespace arc |
| 222 | 223 |
| 223 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ | 224 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ |
| OLD | NEW |