| 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 <ostream> | 8 #include <ostream> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 void OnAuthInstanceReady() override; | 92 void OnAuthInstanceReady() override; |
| 93 | 93 |
| 94 // AuthHost: | 94 // AuthHost: |
| 95 // For security reason this code can be used only once and exists for specific | 95 // For security reason this code can be used only once and exists for specific |
| 96 // period of time. | 96 // period of time. |
| 97 void GetAuthCodeDeprecated( | 97 void GetAuthCodeDeprecated( |
| 98 const GetAuthCodeDeprecatedCallback& callback) override; | 98 const GetAuthCodeDeprecatedCallback& callback) override; |
| 99 void GetAuthCode(const GetAuthCodeCallback& callback) override; | 99 void GetAuthCode(const GetAuthCodeCallback& callback) override; |
| 100 void OnSignInComplete() override; | 100 void OnSignInComplete() override; |
| 101 void OnSignInFailed(arc::ArcSignInFailureReason reason) override; | 101 void OnSignInFailed(arc::ArcSignInFailureReason reason) override; |
| 102 // Callback is called with a bool that indicates the management status of the |
| 103 // user. |
| 104 void GetIsAccountManaged( |
| 105 const GetIsAccountManagedCallback& callback) override; |
| 102 | 106 |
| 103 // May be called internally as response to on Arc OptIn preference change | 107 // May be called internally as response to on Arc OptIn preference change |
| 104 // or externally from Arc support platform app. | 108 // or externally from Arc support platform app. |
| 105 void FetchAuthCode(); | 109 void FetchAuthCode(); |
| 106 | 110 |
| 107 // Called from Arc support platform app when user cancels signing. | 111 // Called from Arc support platform app when user cancels signing. |
| 108 void CancelAuthCode(); | 112 void CancelAuthCode(); |
| 109 | 113 |
| 110 void EnableArc(); | 114 void EnableArc(); |
| 111 void DisableArc(); | 115 void DisableArc(); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 GetAuthCodeCallback auth_callback_; | 159 GetAuthCodeCallback auth_callback_; |
| 156 | 160 |
| 157 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); | 161 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); |
| 158 }; | 162 }; |
| 159 | 163 |
| 160 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state); | 164 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state); |
| 161 | 165 |
| 162 } // namespace arc | 166 } // namespace arc |
| 163 | 167 |
| 164 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ | 168 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ |
| OLD | NEW |