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 void GetIsAccountManaged( | |
Thiemo Nagel
2016/03/15 16:49:22
Please add comment.
phweiss
2016/03/15 17:38:23
Done.
| |
103 const GetIsAccountManagedCallback& callback) override; | |
102 | 104 |
103 // May be called internally as response to on Arc OptIn preference change | 105 // May be called internally as response to on Arc OptIn preference change |
104 // or externally from Arc support platform app. | 106 // or externally from Arc support platform app. |
105 void FetchAuthCode(); | 107 void FetchAuthCode(); |
106 | 108 |
107 // Called from Arc support platform app when user cancels signing. | 109 // Called from Arc support platform app when user cancels signing. |
108 void CancelAuthCode(); | 110 void CancelAuthCode(); |
109 | 111 |
110 void EnableArc(); | 112 void EnableArc(); |
111 void DisableArc(); | 113 void DisableArc(); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
155 GetAuthCodeCallback auth_callback_; | 157 GetAuthCodeCallback auth_callback_; |
156 | 158 |
157 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); | 159 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); |
158 }; | 160 }; |
159 | 161 |
160 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state); | 162 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state); |
161 | 163 |
162 } // namespace arc | 164 } // namespace arc |
163 | 165 |
164 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ | 166 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ |
OLD | NEW |