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

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

Issue 23441025: Clean up NetworkState members (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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 | Annotate | Revision Log
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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // We reach directly into the activator for testing purposes. 137 // We reach directly into the activator for testing purposes.
138 friend class MobileActivatorTest; 138 friend class MobileActivatorTest;
139 139
140 MobileActivator(); 140 MobileActivator();
141 virtual ~MobileActivator(); 141 virtual ~MobileActivator();
142 142
143 // NetworkStateHandlerObserver overrides. 143 // NetworkStateHandlerObserver overrides.
144 virtual void DefaultNetworkChanged(const NetworkState* network) OVERRIDE; 144 virtual void DefaultNetworkChanged(const NetworkState* network) OVERRIDE;
145 virtual void NetworkPropertiesUpdated(const NetworkState* network) OVERRIDE; 145 virtual void NetworkPropertiesUpdated(const NetworkState* network) OVERRIDE;
146 146
147 // Continue activation after inital setup (config load). 147 // Continue activation after inital setup (config load). Makes an
148 // asynchronous call to NetworkConfigurationHandler::GetProperties.
148 void ContinueActivation(); 149 void ContinueActivation();
150 void GetPropertiesSuccess(const std::string& service_path,
151 const base::DictionaryValue& properties);
152 void GetPropertiesFailure(const std::string& error_name,
153 scoped_ptr<base::DictionaryValue> error_data);
149 // Handles the signal that the payment portal has finished loading. 154 // Handles the signal that the payment portal has finished loading.
150 void HandlePortalLoaded(bool success); 155 void HandlePortalLoaded(bool success);
151 // Handles the signal that the user has finished with the portal. 156 // Handles the signal that the user has finished with the portal.
152 void HandleSetTransactionStatus(bool success); 157 void HandleSetTransactionStatus(bool success);
153 // Starts activation. 158 // Starts activation.
154 void StartActivation(); 159 void StartActivation();
155 // Called after we delay our OTASP (after payment). 160 // Called after we delay our OTASP (after payment).
156 void RetryOTASP(); 161 void RetryOTASP();
157 // Continues activation process. This method is called after we disconnect 162 // Continues activation process. This method is called after we disconnect
158 // due to detected connectivity issue to kick off reconnection. 163 // due to detected connectivity issue to kick off reconnection.
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 // State we will return to if we are disconnected. 287 // State we will return to if we are disconnected.
283 PlanActivationState post_reconnect_state_; 288 PlanActivationState post_reconnect_state_;
284 // Called to continue the reconnect attempt. 289 // Called to continue the reconnect attempt.
285 base::RepeatingTimer<MobileActivator> continue_reconnect_timer_; 290 base::RepeatingTimer<MobileActivator> continue_reconnect_timer_;
286 // Called when the reconnect attempt times out. 291 // Called when the reconnect attempt times out.
287 base::OneShotTimer<MobileActivator> reconnect_timeout_timer_; 292 base::OneShotTimer<MobileActivator> reconnect_timeout_timer_;
288 // Cellular plan payment time. 293 // Cellular plan payment time.
289 base::Time cellular_plan_payment_time_; 294 base::Time cellular_plan_payment_time_;
290 295
291 ObserverList<Observer> observers_; 296 ObserverList<Observer> observers_;
297 base::WeakPtrFactory<MobileActivator> weak_ptr_factory_;
292 298
293 DISALLOW_COPY_AND_ASSIGN(MobileActivator); 299 DISALLOW_COPY_AND_ASSIGN(MobileActivator);
294 }; 300 };
295 301
296 } // namespace chromeos 302 } // namespace chromeos
297 303
298 #endif // CHROME_BROWSER_CHROMEOS_MOBILE_MOBILE_ACTIVATOR_H_ 304 #endif // CHROME_BROWSER_CHROMEOS_MOBILE_MOBILE_ACTIVATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698