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" |
11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/weak_ptr.h" | |
14 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
15 #include "base/time.h" | 14 #include "base/time.h" |
16 #include "base/timer.h" | 15 #include "base/timer.h" |
17 #include "chrome/browser/chromeos/login/screen_observer.h" | 16 #include "chrome/browser/chromeos/login/screen_observer.h" |
18 #include "chrome/browser/chromeos/login/wizard_screen.h" | 17 #include "chrome/browser/chromeos/login/wizard_screen.h" |
19 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
20 #include "ui/gfx/rect.h" | 19 #include "ui/gfx/rect.h" |
21 | 20 |
22 class PrefService; | 21 class PrefService; |
23 | 22 |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 bool skip_update_enroll_after_eula_; | 283 bool skip_update_enroll_after_eula_; |
285 | 284 |
286 // Time when the EULA was accepted. Used to measure the duration from the EULA | 285 // Time when the EULA was accepted. Used to measure the duration from the EULA |
287 // acceptance until the Sign-In screen is displayed. | 286 // acceptance until the Sign-In screen is displayed. |
288 base::Time time_eula_accepted_; | 287 base::Time time_eula_accepted_; |
289 | 288 |
290 ObserverList<Observer> observer_list_; | 289 ObserverList<Observer> observer_list_; |
291 | 290 |
292 bool login_screen_started_; | 291 bool login_screen_started_; |
293 | 292 |
294 base::WeakPtrFactory<WizardController> weak_ptr_factory_; | |
295 | |
296 FRIEND_TEST_ALL_PREFIXES(EnterpriseEnrollmentScreenTest, TestCancel); | 293 FRIEND_TEST_ALL_PREFIXES(EnterpriseEnrollmentScreenTest, TestCancel); |
297 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, Accelerators); | 294 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, Accelerators); |
298 friend class WizardControllerFlowTest; | 295 friend class WizardControllerFlowTest; |
299 friend class WizardInProcessBrowserTest; | 296 friend class WizardInProcessBrowserTest; |
300 | 297 |
301 DISALLOW_COPY_AND_ASSIGN(WizardController); | 298 DISALLOW_COPY_AND_ASSIGN(WizardController); |
302 }; | 299 }; |
303 | 300 |
304 } // namespace chromeos | 301 } // namespace chromeos |
305 | 302 |
306 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ | 303 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
OLD | NEW |