| 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 21 matching lines...) Expand all Loading... |
| 74 std::unique_ptr<ArcAuthInfoFetcher> fetcher_; | 75 std::unique_ptr<ArcAuthInfoFetcher> fetcher_; |
| 75 | 76 |
| 76 base::WeakPtrFactory<ArcAuthService> weak_ptr_factory_; | 77 base::WeakPtrFactory<ArcAuthService> weak_ptr_factory_; |
| 77 | 78 |
| 78 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); | 79 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); |
| 79 }; | 80 }; |
| 80 | 81 |
| 81 } // namespace arc | 82 } // namespace arc |
| 82 | 83 |
| 83 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ | 84 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ |
| OLD | NEW |