| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 public: | 58 public: |
| 59 enum class State { | 59 enum class State { |
| 60 NOT_INITIALIZED, // Service is not initialized. | 60 NOT_INITIALIZED, // Service is not initialized. |
| 61 STOPPED, // ARC is not running. | 61 STOPPED, // ARC is not running. |
| 62 FETCHING_CODE, // ARC may be running or not. Auth code is fetching. | 62 FETCHING_CODE, // ARC may be running or not. Auth code is fetching. |
| 63 ACTIVE, // ARC is running. | 63 ACTIVE, // ARC is running. |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 enum class UIPage { | 66 enum class UIPage { |
| 67 NO_PAGE, // Hide everything. | 67 NO_PAGE, // Hide everything. |
| 68 TERMS_PROGRESS, // Terms loading progress page. | |
| 69 TERMS, // Terms content page. | 68 TERMS, // Terms content page. |
| 70 LSO_PROGRESS, // LSO loading progress page. | 69 LSO_PROGRESS, // LSO loading progress page. |
| 71 LSO, // LSO page to enter user's credentials. | 70 LSO, // LSO page to enter user's credentials. |
| 72 START_PROGRESS, // Arc starting progress page. | 71 START_PROGRESS, // Arc starting progress page. |
| 73 ERROR, // Arc start error page. | 72 ERROR, // Arc start error page. |
| 74 ERROR_WITH_FEEDBACK, // Arc start error page, plus feedback button. | 73 ERROR_WITH_FEEDBACK, // Arc start error page, plus feedback button. |
| 75 }; | 74 }; |
| 76 | 75 |
| 77 class Observer { | 76 class Observer { |
| 78 public: | 77 public: |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 | 265 |
| 267 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); | 266 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); |
| 268 }; | 267 }; |
| 269 | 268 |
| 270 // Outputs the stringified |state| to |os|. This is only for logging purposes. | 269 // Outputs the stringified |state| to |os|. This is only for logging purposes. |
| 271 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state); | 270 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state); |
| 272 | 271 |
| 273 } // namespace arc | 272 } // namespace arc |
| 274 | 273 |
| 275 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ | 274 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ |
| OLD | NEW |