| 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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 // Unowned pointer. Keeps current profile. | 236 // Unowned pointer. Keeps current profile. |
| 237 Profile* profile_ = nullptr; | 237 Profile* profile_ = nullptr; |
| 238 | 238 |
| 239 // Registrar used to monitor ARC enabled state. | 239 // Registrar used to monitor ARC enabled state. |
| 240 PrefChangeRegistrar pref_change_registrar_; | 240 PrefChangeRegistrar pref_change_registrar_; |
| 241 | 241 |
| 242 State state_ = State::NOT_INITIALIZED; | 242 State state_ = State::NOT_INITIALIZED; |
| 243 base::ObserverList<Observer> observer_list_; | 243 base::ObserverList<Observer> observer_list_; |
| 244 std::unique_ptr<ArcAppLauncher> playstore_launcher_; | 244 std::unique_ptr<ArcAppLauncher> playstore_launcher_; |
| 245 bool reenable_arc_ = false; | 245 bool reenable_arc_ = false; |
| 246 bool provisioning_reported_ = false; |
| 246 base::OneShotTimer arc_sign_in_timer_; | 247 base::OneShotTimer arc_sign_in_timer_; |
| 247 | 248 |
| 248 std::unique_ptr<ArcSupportHost> support_host_; | 249 std::unique_ptr<ArcSupportHost> support_host_; |
| 249 | 250 |
| 250 std::unique_ptr<ArcTermsOfServiceNegotiator> terms_of_service_negotiator_; | 251 std::unique_ptr<ArcTermsOfServiceNegotiator> terms_of_service_negotiator_; |
| 251 | 252 |
| 252 std::unique_ptr<ArcAuthContext> context_; | 253 std::unique_ptr<ArcAuthContext> context_; |
| 253 std::unique_ptr<ArcAndroidManagementChecker> android_management_checker_; | 254 std::unique_ptr<ArcAndroidManagementChecker> android_management_checker_; |
| 254 | 255 |
| 255 base::Time sign_in_time_; | 256 base::Time sign_in_time_; |
| 256 | 257 |
| 257 base::WeakPtrFactory<ArcSessionManager> weak_ptr_factory_; | 258 base::WeakPtrFactory<ArcSessionManager> weak_ptr_factory_; |
| 258 | 259 |
| 259 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager); | 260 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager); |
| 260 }; | 261 }; |
| 261 | 262 |
| 262 // Outputs the stringified |state| to |os|. This is only for logging purposes. | 263 // Outputs the stringified |state| to |os|. This is only for logging purposes. |
| 263 std::ostream& operator<<(std::ostream& os, | 264 std::ostream& operator<<(std::ostream& os, |
| 264 const ArcSessionManager::State& state); | 265 const ArcSessionManager::State& state); |
| 265 | 266 |
| 266 } // namespace arc | 267 } // namespace arc |
| 267 | 268 |
| 268 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ | 269 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ |
| OLD | NEW |