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

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: Rebase 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 GetPropertiesAndContinueActivation(
151 const std::string& service_path,
152 const base::DictionaryValue& properties);
153 void GetPropertiesFailure(const std::string& error_name,
154 scoped_ptr<base::DictionaryValue> error_data);
149 // Handles the signal that the payment portal has finished loading. 155 // Handles the signal that the payment portal has finished loading.
150 void HandlePortalLoaded(bool success); 156 void HandlePortalLoaded(bool success);
151 // Handles the signal that the user has finished with the portal. 157 // Handles the signal that the user has finished with the portal.
152 void HandleSetTransactionStatus(bool success); 158 void HandleSetTransactionStatus(bool success);
153 // Starts activation. 159 // Starts activation.
154 void StartActivation(); 160 void StartActivation();
155 // Called after we delay our OTASP (after payment). 161 // Called after we delay our OTASP (after payment).
156 void RetryOTASP(); 162 void RetryOTASP();
157 // Continues activation process. This method is called after we disconnect 163 // Continues activation process. This method is called after we disconnect
158 // due to detected connectivity issue to kick off reconnection. 164 // 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. 288 // State we will return to if we are disconnected.
283 PlanActivationState post_reconnect_state_; 289 PlanActivationState post_reconnect_state_;
284 // Called to continue the reconnect attempt. 290 // Called to continue the reconnect attempt.
285 base::RepeatingTimer<MobileActivator> continue_reconnect_timer_; 291 base::RepeatingTimer<MobileActivator> continue_reconnect_timer_;
286 // Called when the reconnect attempt times out. 292 // Called when the reconnect attempt times out.
287 base::OneShotTimer<MobileActivator> reconnect_timeout_timer_; 293 base::OneShotTimer<MobileActivator> reconnect_timeout_timer_;
288 // Cellular plan payment time. 294 // Cellular plan payment time.
289 base::Time cellular_plan_payment_time_; 295 base::Time cellular_plan_payment_time_;
290 296
291 ObserverList<Observer> observers_; 297 ObserverList<Observer> observers_;
298 base::WeakPtrFactory<MobileActivator> weak_ptr_factory_;
292 299
293 DISALLOW_COPY_AND_ASSIGN(MobileActivator); 300 DISALLOW_COPY_AND_ASSIGN(MobileActivator);
294 }; 301 };
295 302
296 } // namespace chromeos 303 } // namespace chromeos
297 304
298 #endif // CHROME_BROWSER_CHROMEOS_MOBILE_MOBILE_ACTIVATOR_H_ 305 #endif // CHROME_BROWSER_CHROMEOS_MOBILE_MOBILE_ACTIVATOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/automation/testing_automation_provider_chromeos.cc ('k') | chrome/browser/chromeos/mobile/mobile_activator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698