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 <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 // Device on which the network service is activated. While the service path | 287 // Device on which the network service is activated. While the service path |
288 // can change during activation due to modem resets, the device path stays | 288 // can change during activation due to modem resets, the device path stays |
289 // the same. | 289 // the same. |
290 std::string device_path_; | 290 std::string device_path_; |
291 // Flags that controls if cert_checks needs to be restored | 291 // Flags that controls if cert_checks needs to be restored |
292 // after the activation of cellular network. | 292 // after the activation of cellular network. |
293 bool reenable_cert_check_; | 293 bool reenable_cert_check_; |
294 // True if activation process has been terminated. | 294 // True if activation process has been terminated. |
295 bool terminated_; | 295 bool terminated_; |
296 // True if an asynchronous activation request was dispatched to Shill | 296 // True if an asynchronous activation request was dispatched to Shill |
297 // but the succcess or failure of the request is yet unknown. | 297 // but the success or failure of the request is yet unknown. |
298 bool pending_activation_request_; | 298 bool pending_activation_request_; |
299 // Connection retry counter. | 299 // Connection retry counter. |
300 int connection_retry_count_; | 300 int connection_retry_count_; |
301 // Counters for how many times we've tried each OTASP step. | 301 // Counters for how many times we've tried each OTASP step. |
302 int initial_OTASP_attempts_; | 302 int initial_OTASP_attempts_; |
303 int trying_OTASP_attempts_; | 303 int trying_OTASP_attempts_; |
304 int final_OTASP_attempts_; | 304 int final_OTASP_attempts_; |
305 // Payment portal reload/reconnect attempt count. | 305 // Payment portal reload/reconnect attempt count. |
306 int payment_reconnect_count_; | 306 int payment_reconnect_count_; |
307 // Timer that monitors how long we spend in error-prone states. | 307 // Timer that monitors how long we spend in error-prone states. |
(...skipping 10 matching lines...) Expand all Loading... |
318 | 318 |
319 base::ObserverList<Observer> observers_; | 319 base::ObserverList<Observer> observers_; |
320 base::WeakPtrFactory<MobileActivator> weak_ptr_factory_; | 320 base::WeakPtrFactory<MobileActivator> weak_ptr_factory_; |
321 | 321 |
322 DISALLOW_COPY_AND_ASSIGN(MobileActivator); | 322 DISALLOW_COPY_AND_ASSIGN(MobileActivator); |
323 }; | 323 }; |
324 | 324 |
325 } // namespace chromeos | 325 } // namespace chromeos |
326 | 326 |
327 #endif // CHROME_BROWSER_CHROMEOS_MOBILE_MOBILE_ACTIVATOR_H_ | 327 #endif // CHROME_BROWSER_CHROMEOS_MOBILE_MOBILE_ACTIVATOR_H_ |
OLD | NEW |