| 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 <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 static ArcAuthService* GetForTest(); | 33 static ArcAuthService* GetForTest(); |
| 34 | 34 |
| 35 // InstanceHolder<mojom::AuthInstance>::Observer: | 35 // InstanceHolder<mojom::AuthInstance>::Observer: |
| 36 void OnInstanceReady() override; | 36 void OnInstanceReady() override; |
| 37 void OnInstanceClosed() override; | 37 void OnInstanceClosed() override; |
| 38 | 38 |
| 39 // mojom::AuthHost: | 39 // mojom::AuthHost: |
| 40 void OnSignInComplete() override; | 40 void OnSignInComplete() override; |
| 41 void OnSignInFailed(mojom::ArcSignInFailureReason reason) override; | 41 void OnSignInFailed(mojom::ArcSignInFailureReason reason) override; |
| 42 void RequestAccountInfo() override; | 42 void RequestAccountInfo() override; |
| 43 void ReportMetrics(mojom::MetricsType metrics_type, int32_t value) override; |
| 43 | 44 |
| 44 // Deprecated methods: | 45 // Deprecated methods: |
| 45 // For security reason this code can be used only once and exists for specific | 46 // For security reason this code can be used only once and exists for specific |
| 46 // period of time. | 47 // period of time. |
| 47 void GetAuthCodeDeprecated0( | 48 void GetAuthCodeDeprecated0( |
| 48 const GetAuthCodeDeprecated0Callback& callback) override; | 49 const GetAuthCodeDeprecated0Callback& callback) override; |
| 49 void GetAuthCodeDeprecated( | 50 void GetAuthCodeDeprecated( |
| 50 const GetAuthCodeDeprecatedCallback& callback) override; | 51 const GetAuthCodeDeprecatedCallback& callback) override; |
| 51 void GetAuthCodeAndAccountTypeDeprecated( | 52 void GetAuthCodeAndAccountTypeDeprecated( |
| 52 const GetAuthCodeAndAccountTypeDeprecatedCallback& callback) override; | 53 const GetAuthCodeAndAccountTypeDeprecatedCallback& callback) override; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 73 std::unique_ptr<ArcAuthCodeFetcher> fetcher_; | 74 std::unique_ptr<ArcAuthCodeFetcher> fetcher_; |
| 74 | 75 |
| 75 base::WeakPtrFactory<ArcAuthService> weak_ptr_factory_; | 76 base::WeakPtrFactory<ArcAuthService> weak_ptr_factory_; |
| 76 | 77 |
| 77 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); | 78 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); |
| 78 }; | 79 }; |
| 79 | 80 |
| 80 } // namespace arc | 81 } // namespace arc |
| 81 | 82 |
| 82 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ | 83 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ |
| OLD | NEW |