| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 LSO, // LSO page to enter user's credentials. | 70 LSO, // LSO page to enter user's credentials. |
| 71 START_PROGRESS, // Arc starting progress page. | 71 START_PROGRESS, // Arc starting progress page. |
| 72 ERROR, // Arc start error page. | 72 ERROR, // Arc start error page. |
| 73 ERROR_WITH_FEEDBACK, // Arc start error page, plus feedback button. | 73 ERROR_WITH_FEEDBACK, // Arc start error page, plus feedback button. |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 class Observer { | 76 class Observer { |
| 77 public: | 77 public: |
| 78 virtual ~Observer() = default; | 78 virtual ~Observer() = default; |
| 79 | 79 |
| 80 // Called whenever Opt-In state of the ARC has been changed. | |
| 81 virtual void OnOptInChanged(State state) {} | |
| 82 | |
| 83 // Called to notify that ARC bridge is shut down. | 80 // Called to notify that ARC bridge is shut down. |
| 84 virtual void OnShutdownBridge() {} | 81 virtual void OnShutdownBridge() {} |
| 85 | 82 |
| 86 // Called to notify that ARC enabled state has been updated. | 83 // Called to notify that ARC enabled state has been updated. |
| 87 virtual void OnOptInEnabled(bool enabled) {} | 84 virtual void OnOptInEnabled(bool enabled) {} |
| 88 | 85 |
| 89 // Called to notify that ARC has been initialized successfully. | 86 // Called to notify that ARC has been initialized successfully. |
| 90 virtual void OnInitialStart() {} | 87 virtual void OnInitialStart() {} |
| 91 }; | 88 }; |
| 92 | 89 |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 | 261 |
| 265 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); | 262 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); |
| 266 }; | 263 }; |
| 267 | 264 |
| 268 // Outputs the stringified |state| to |os|. This is only for logging purposes. | 265 // Outputs the stringified |state| to |os|. This is only for logging purposes. |
| 269 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state); | 266 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state); |
| 270 | 267 |
| 271 } // namespace arc | 268 } // namespace arc |
| 272 | 269 |
| 273 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ | 270 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ |
| OLD | NEW |