OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_MOBILE_MOBILE_ACTIVATOR_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_MOBILE_MOBILE_ACTIVATOR_H_ |
6 #define CHROME_BROWSER_CHROMEOS_MOBILE_MOBILE_ACTIVATOR_H_ | 6 #define CHROME_BROWSER_CHROMEOS_MOBILE_MOBILE_ACTIVATOR_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 bool pending_activation_request_; | 300 bool pending_activation_request_; |
301 // Connection retry counter. | 301 // Connection retry counter. |
302 int connection_retry_count_; | 302 int connection_retry_count_; |
303 // Counters for how many times we've tried each OTASP step. | 303 // Counters for how many times we've tried each OTASP step. |
304 int initial_OTASP_attempts_; | 304 int initial_OTASP_attempts_; |
305 int trying_OTASP_attempts_; | 305 int trying_OTASP_attempts_; |
306 int final_OTASP_attempts_; | 306 int final_OTASP_attempts_; |
307 // Payment portal reload/reconnect attempt count. | 307 // Payment portal reload/reconnect attempt count. |
308 int payment_reconnect_count_; | 308 int payment_reconnect_count_; |
309 // Timer that monitors how long we spend in error-prone states. | 309 // Timer that monitors how long we spend in error-prone states. |
310 base::RepeatingTimer<MobileActivator> state_duration_timer_; | 310 base::RepeatingTimer state_duration_timer_; |
311 | 311 |
312 // State we will return to if we are disconnected. | 312 // State we will return to if we are disconnected. |
313 PlanActivationState post_reconnect_state_; | 313 PlanActivationState post_reconnect_state_; |
314 // Called to continue the reconnect attempt. | 314 // Called to continue the reconnect attempt. |
315 base::RepeatingTimer<MobileActivator> continue_reconnect_timer_; | 315 base::RepeatingTimer continue_reconnect_timer_; |
316 // Called when the reconnect attempt times out. | 316 // Called when the reconnect attempt times out. |
317 base::OneShotTimer<MobileActivator> reconnect_timeout_timer_; | 317 base::OneShotTimer reconnect_timeout_timer_; |
318 // Cellular plan payment time. | 318 // Cellular plan payment time. |
319 base::Time cellular_plan_payment_time_; | 319 base::Time cellular_plan_payment_time_; |
320 | 320 |
321 base::ObserverList<Observer> observers_; | 321 base::ObserverList<Observer> observers_; |
322 base::WeakPtrFactory<MobileActivator> weak_ptr_factory_; | 322 base::WeakPtrFactory<MobileActivator> weak_ptr_factory_; |
323 | 323 |
324 DISALLOW_COPY_AND_ASSIGN(MobileActivator); | 324 DISALLOW_COPY_AND_ASSIGN(MobileActivator); |
325 }; | 325 }; |
326 | 326 |
327 } // namespace chromeos | 327 } // namespace chromeos |
328 | 328 |
329 #endif // CHROME_BROWSER_CHROMEOS_MOBILE_MOBILE_ACTIVATOR_H_ | 329 #endif // CHROME_BROWSER_CHROMEOS_MOBILE_MOBILE_ACTIVATOR_H_ |
OLD | NEW |