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_LOGIN_WIZARD_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 // back via ScreenObserver::OnExit(). | 264 // back via ScreenObserver::OnExit(). |
265 void StartAutoEnrollmentCheck(); | 265 void StartAutoEnrollmentCheck(); |
266 | 266 |
267 // Returns local state. | 267 // Returns local state. |
268 PrefService* GetLocalState(); | 268 PrefService* GetLocalState(); |
269 | 269 |
270 static void set_local_state_for_testing(PrefService* local_state) { | 270 static void set_local_state_for_testing(PrefService* local_state) { |
271 local_state_for_testing_ = local_state; | 271 local_state_for_testing_ = local_state; |
272 } | 272 } |
273 | 273 |
| 274 std::string first_screen_name() { return first_screen_name_; } |
| 275 |
274 // Called when network is UP. | 276 // Called when network is UP. |
275 void StartTimezoneResolve(); | 277 void StartTimezoneResolve(); |
276 | 278 |
277 // Creates provider on demand. | 279 // Creates provider on demand. |
278 TimeZoneProvider* GetTimezoneProvider(); | 280 TimeZoneProvider* GetTimezoneProvider(); |
279 | 281 |
280 // TimeZoneRequest::TimeZoneResponseCallback implementation. | 282 // TimeZoneRequest::TimeZoneResponseCallback implementation. |
281 void OnTimezoneResolved(scoped_ptr<TimeZoneResponseData> timezone, | 283 void OnTimezoneResolved(scoped_ptr<TimeZoneResponseData> timezone, |
282 bool server_error); | 284 bool server_error); |
283 | 285 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 // Indicates that once image selection screen finishes we should return to | 363 // Indicates that once image selection screen finishes we should return to |
362 // a previous screen instead of proceeding with usual flow. | 364 // a previous screen instead of proceeding with usual flow. |
363 bool user_image_screen_return_to_previous_hack_; | 365 bool user_image_screen_return_to_previous_hack_; |
364 | 366 |
365 // Non-owning pointer to local state used for testing. | 367 // Non-owning pointer to local state used for testing. |
366 static PrefService* local_state_for_testing_; | 368 static PrefService* local_state_for_testing_; |
367 | 369 |
368 FRIEND_TEST_ALL_PREFIXES(EnrollmentScreenTest, TestCancel); | 370 FRIEND_TEST_ALL_PREFIXES(EnrollmentScreenTest, TestCancel); |
369 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, Accelerators); | 371 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, Accelerators); |
370 friend class WizardControllerFlowTest; | 372 friend class WizardControllerFlowTest; |
| 373 friend class WizardControllerOobeResumeTest; |
371 friend class WizardInProcessBrowserTest; | 374 friend class WizardInProcessBrowserTest; |
372 friend class WizardControllerBrokenLocalStateTest; | 375 friend class WizardControllerBrokenLocalStateTest; |
373 | 376 |
374 scoped_ptr<AccessibilityStatusSubscription> accessibility_subscription_; | 377 scoped_ptr<AccessibilityStatusSubscription> accessibility_subscription_; |
375 | 378 |
376 base::WeakPtrFactory<WizardController> weak_factory_; | 379 base::WeakPtrFactory<WizardController> weak_factory_; |
377 | 380 |
378 scoped_ptr<SimpleGeolocationProvider> geolocation_provider_; | 381 scoped_ptr<SimpleGeolocationProvider> geolocation_provider_; |
379 scoped_ptr<TimeZoneProvider> timezone_provider_; | 382 scoped_ptr<TimeZoneProvider> timezone_provider_; |
380 | 383 |
381 DISALLOW_COPY_AND_ASSIGN(WizardController); | 384 DISALLOW_COPY_AND_ASSIGN(WizardController); |
382 }; | 385 }; |
383 | 386 |
384 } // namespace chromeos | 387 } // namespace chromeos |
385 | 388 |
386 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ | 389 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
OLD | NEW |