| 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_SESSION_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <ostream> | 9 #include <ostream> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 Profile* profile_ = nullptr; | 231 Profile* profile_ = nullptr; |
| 232 | 232 |
| 233 // Registrar used to monitor ARC enabled state. | 233 // Registrar used to monitor ARC enabled state. |
| 234 PrefChangeRegistrar pref_change_registrar_; | 234 PrefChangeRegistrar pref_change_registrar_; |
| 235 | 235 |
| 236 State state_ = State::NOT_INITIALIZED; | 236 State state_ = State::NOT_INITIALIZED; |
| 237 base::ObserverList<Observer> observer_list_; | 237 base::ObserverList<Observer> observer_list_; |
| 238 std::unique_ptr<ArcAppLauncher> playstore_launcher_; | 238 std::unique_ptr<ArcAppLauncher> playstore_launcher_; |
| 239 bool clear_required_ = false; | 239 bool clear_required_ = false; |
| 240 bool reenable_arc_ = false; | 240 bool reenable_arc_ = false; |
| 241 bool provisioning_error_reported_ = false; |
| 241 base::OneShotTimer arc_sign_in_timer_; | 242 base::OneShotTimer arc_sign_in_timer_; |
| 242 | 243 |
| 243 std::unique_ptr<ArcSupportHost> support_host_; | 244 std::unique_ptr<ArcSupportHost> support_host_; |
| 244 | 245 |
| 245 std::unique_ptr<ArcTermsOfServiceNegotiator> terms_of_service_negotiator_; | 246 std::unique_ptr<ArcTermsOfServiceNegotiator> terms_of_service_negotiator_; |
| 246 | 247 |
| 247 std::unique_ptr<ArcAuthContext> context_; | 248 std::unique_ptr<ArcAuthContext> context_; |
| 248 std::unique_ptr<ArcAndroidManagementChecker> android_management_checker_; | 249 std::unique_ptr<ArcAndroidManagementChecker> android_management_checker_; |
| 249 | 250 |
| 250 base::Time sign_in_time_; | 251 base::Time sign_in_time_; |
| 251 | 252 |
| 252 base::WeakPtrFactory<ArcSessionManager> weak_ptr_factory_; | 253 base::WeakPtrFactory<ArcSessionManager> weak_ptr_factory_; |
| 253 | 254 |
| 254 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager); | 255 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager); |
| 255 }; | 256 }; |
| 256 | 257 |
| 257 // Outputs the stringified |state| to |os|. This is only for logging purposes. | 258 // Outputs the stringified |state| to |os|. This is only for logging purposes. |
| 258 std::ostream& operator<<(std::ostream& os, | 259 std::ostream& operator<<(std::ostream& os, |
| 259 const ArcSessionManager::State& state); | 260 const ArcSessionManager::State& state); |
| 260 | 261 |
| 261 } // namespace arc | 262 } // namespace arc |
| 262 | 263 |
| 263 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ | 264 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ |
| OLD | NEW |