Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: chrome/browser/chromeos/mobile/mobile_activator.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/wizard_controller.h ('k') | chrome/browser/chromeos/policy/device_status_collector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698