| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 117 |
| 118 State state() const { return state_; } | 118 State state() const { return state_; } |
| 119 | 119 |
| 120 std::string GetAndResetAuthCode(); | 120 std::string GetAndResetAuthCode(); |
| 121 | 121 |
| 122 // Adds or removes observers. | 122 // Adds or removes observers. |
| 123 void AddObserver(Observer* observer); | 123 void AddObserver(Observer* observer); |
| 124 void RemoveObserver(Observer* observer); | 124 void RemoveObserver(Observer* observer); |
| 125 | 125 |
| 126 // ArcBridgeService::Observer: | 126 // ArcBridgeService::Observer: |
| 127 void OnBridgeStopped() override; | 127 void OnBridgeStopped(ArcBridgeService::StopReason reason) override; |
| 128 | 128 |
| 129 // InstanceHolder<mojom::AuthInstance>::Observer: | 129 // InstanceHolder<mojom::AuthInstance>::Observer: |
| 130 void OnInstanceReady() override; | 130 void OnInstanceReady() override; |
| 131 | 131 |
| 132 // AuthHost: | 132 // AuthHost: |
| 133 // For security reason this code can be used only once and exists for specific | 133 // For security reason this code can be used only once and exists for specific |
| 134 // period of time. | 134 // period of time. |
| 135 void GetAuthCodeDeprecated( | 135 void GetAuthCodeDeprecated( |
| 136 const GetAuthCodeDeprecatedCallback& callback) override; | 136 const GetAuthCodeDeprecatedCallback& callback) override; |
| 137 void GetAuthCode(const GetAuthCodeCallback& callback) override; | 137 void GetAuthCode(const GetAuthCodeCallback& callback) override; |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 base::WeakPtrFactory<ArcAuthService> weak_ptr_factory_; | 219 base::WeakPtrFactory<ArcAuthService> weak_ptr_factory_; |
| 220 | 220 |
| 221 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); | 221 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); |
| 222 }; | 222 }; |
| 223 | 223 |
| 224 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state); | 224 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state); |
| 225 | 225 |
| 226 } // namespace arc | 226 } // namespace arc |
| 227 | 227 |
| 228 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ | 228 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ |
| OLD | NEW |