| 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 State state_ = State::NOT_INITIALIZED; | 196 State state_ = State::NOT_INITIALIZED; |
| 197 base::ObserverList<Observer> observer_list_; | 197 base::ObserverList<Observer> observer_list_; |
| 198 std::unique_ptr<ArcAppLauncher> playstore_launcher_; | 198 std::unique_ptr<ArcAppLauncher> playstore_launcher_; |
| 199 std::string auth_code_; | 199 std::string auth_code_; |
| 200 GetAuthCodeCallback auth_callback_; | 200 GetAuthCodeCallback auth_callback_; |
| 201 bool initial_opt_in_ = false; | 201 bool initial_opt_in_ = false; |
| 202 bool disable_arc_from_ui_ = false; | 202 bool disable_arc_from_ui_ = false; |
| 203 UIPage ui_page_ = UIPage::NO_PAGE; | 203 UIPage ui_page_ = UIPage::NO_PAGE; |
| 204 base::string16 ui_page_status_; | 204 base::string16 ui_page_status_; |
| 205 bool clear_required_ = false; | 205 bool clear_required_ = false; |
| 206 bool waiting_for_reply_ = false; |
| 206 | 207 |
| 207 std::unique_ptr<ArcAuthContext> context_; | 208 std::unique_ptr<ArcAuthContext> context_; |
| 208 std::unique_ptr<ArcAndroidManagementChecker> android_management_checker_; | 209 std::unique_ptr<ArcAndroidManagementChecker> android_management_checker_; |
| 209 | 210 |
| 210 base::Time sign_in_time_; | 211 base::Time sign_in_time_; |
| 211 | 212 |
| 212 base::WeakPtrFactory<ArcAuthService> weak_ptr_factory_; | 213 base::WeakPtrFactory<ArcAuthService> weak_ptr_factory_; |
| 213 | 214 |
| 214 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); | 215 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); |
| 215 }; | 216 }; |
| 216 | 217 |
| 217 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state); | 218 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state); |
| 218 | 219 |
| 219 } // namespace arc | 220 } // namespace arc |
| 220 | 221 |
| 221 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ | 222 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ |
| OLD | NEW |