| 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 <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/containers/hash_tables.h" | |
| 14 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
| 15 #include "base/macros.h" | 14 #include "base/macros.h" |
| 16 #include "base/memory/linked_ptr.h" | 15 #include "base/memory/linked_ptr.h" |
| 17 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
| 18 #include "base/observer_list.h" | 17 #include "base/observer_list.h" |
| 19 #include "base/time/time.h" | 18 #include "base/time/time.h" |
| 20 #include "base/timer/timer.h" | 19 #include "base/timer/timer.h" |
| 21 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" | 20 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" |
| 22 #include "chrome/browser/chromeos/login/screen_manager.h" | 21 #include "chrome/browser/chromeos/login/screen_manager.h" |
| 23 #include "chrome/browser/chromeos/login/screens/base_screen_delegate.h" | 22 #include "chrome/browser/chromeos/login/screens/base_screen_delegate.h" |
| (...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 std::unique_ptr<TimeZoneProvider> timezone_provider_; | 403 std::unique_ptr<TimeZoneProvider> timezone_provider_; |
| 405 | 404 |
| 406 // Pairing controller for shark devices. | 405 // Pairing controller for shark devices. |
| 407 std::unique_ptr<pairing_chromeos::ControllerPairingController> | 406 std::unique_ptr<pairing_chromeos::ControllerPairingController> |
| 408 shark_controller_; | 407 shark_controller_; |
| 409 | 408 |
| 410 // Pairing controller for remora devices. | 409 // Pairing controller for remora devices. |
| 411 std::unique_ptr<pairing_chromeos::HostPairingController> remora_controller_; | 410 std::unique_ptr<pairing_chromeos::HostPairingController> remora_controller_; |
| 412 | 411 |
| 413 // Maps screen names to last time of their shows. | 412 // Maps screen names to last time of their shows. |
| 414 base::hash_map<std::string, base::Time> screen_show_times_; | 413 std::map<std::string, base::Time> screen_show_times_; |
| 415 | 414 |
| 416 // Tests check result of timezone resolve. | 415 // Tests check result of timezone resolve. |
| 417 bool timezone_resolved_ = false; | 416 bool timezone_resolved_ = false; |
| 418 base::Closure on_timezone_resolved_for_testing_; | 417 base::Closure on_timezone_resolved_for_testing_; |
| 419 | 418 |
| 420 // Listens for incoming connection from a shark controller if a regular (not | 419 // Listens for incoming connection from a shark controller if a regular (not |
| 421 // pairing) remora OOBE is active. If connection is established, wizard | 420 // pairing) remora OOBE is active. If connection is established, wizard |
| 422 // conroller swithces to a pairing OOBE. | 421 // conroller swithces to a pairing OOBE. |
| 423 std::unique_ptr<pairing_chromeos::SharkConnectionListener> | 422 std::unique_ptr<pairing_chromeos::SharkConnectionListener> |
| 424 shark_connection_listener_; | 423 shark_connection_listener_; |
| 425 | 424 |
| 426 BaseScreen* hid_screen_ = nullptr; | 425 BaseScreen* hid_screen_ = nullptr; |
| 427 | 426 |
| 428 base::WeakPtrFactory<WizardController> weak_factory_; | 427 base::WeakPtrFactory<WizardController> weak_factory_; |
| 429 | 428 |
| 430 DISALLOW_COPY_AND_ASSIGN(WizardController); | 429 DISALLOW_COPY_AND_ASSIGN(WizardController); |
| 431 }; | 430 }; |
| 432 | 431 |
| 433 } // namespace chromeos | 432 } // namespace chromeos |
| 434 | 433 |
| 435 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ | 434 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
| OLD | NEW |