| 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 Profile* profile_ = nullptr; | 240 Profile* profile_ = nullptr; |
| 241 | 241 |
| 242 // Registrar used to monitor ARC enabled state. | 242 // Registrar used to monitor ARC enabled state. |
| 243 PrefChangeRegistrar pref_change_registrar_; | 243 PrefChangeRegistrar pref_change_registrar_; |
| 244 | 244 |
| 245 mojo::Binding<AuthHost> binding_; | 245 mojo::Binding<AuthHost> binding_; |
| 246 State state_ = State::NOT_INITIALIZED; | 246 State state_ = State::NOT_INITIALIZED; |
| 247 base::ObserverList<Observer> observer_list_; | 247 base::ObserverList<Observer> observer_list_; |
| 248 std::unique_ptr<ArcAppLauncher> playstore_launcher_; | 248 std::unique_ptr<ArcAppLauncher> playstore_launcher_; |
| 249 std::string auth_code_; | 249 std::string auth_code_; |
| 250 bool initial_opt_in_ = false; | |
| 251 UIPage ui_page_ = UIPage::NO_PAGE; | 250 UIPage ui_page_ = UIPage::NO_PAGE; |
| 252 base::string16 ui_page_status_; | 251 base::string16 ui_page_status_; |
| 253 bool clear_required_ = false; | 252 bool clear_required_ = false; |
| 254 bool reenable_arc_ = false; | 253 bool reenable_arc_ = false; |
| 255 base::OneShotTimer arc_sign_in_timer_; | 254 base::OneShotTimer arc_sign_in_timer_; |
| 256 | 255 |
| 257 // Notifies the correct callback whenever the auth_code is ready. | 256 // Notifies the correct callback whenever the auth_code is ready. |
| 258 std::unique_ptr<AccountInfoNotifier> account_info_notifier_; | 257 std::unique_ptr<AccountInfoNotifier> account_info_notifier_; |
| 259 | 258 |
| 260 // Temporarily keeps the ArcSupportHost instance. | 259 // Temporarily keeps the ArcSupportHost instance. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 272 | 271 |
| 273 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); | 272 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); |
| 274 }; | 273 }; |
| 275 | 274 |
| 276 // Outputs the stringified |state| to |os|. This is only for logging purposes. | 275 // Outputs the stringified |state| to |os|. This is only for logging purposes. |
| 277 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state); | 276 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state); |
| 278 | 277 |
| 279 } // namespace arc | 278 } // namespace arc |
| 280 | 279 |
| 281 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ | 280 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ |
| OLD | NEW |