| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_UI_WEBUI_CHROMEOS_LOGIN_DEMO_MODE_DETECTOR_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_DEMO_MODE_DEMO_MODE_DETECTOR_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_DEMO_MODE_DETECTOR_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_DEMO_MODE_DEMO_MODE_DETECTOR_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 14 #include "base/timer/timer.h" | 14 #include "base/timer/timer.h" |
| 15 #include "chrome/browser/chromeos/idle_detector.h" | 15 #include "chrome/browser/chromeos/idle_detector.h" |
| 16 | 16 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 // Timeout to detect if the machine is in a derelict state. | 49 // Timeout to detect if the machine is in a derelict state. |
| 50 base::TimeDelta derelict_detection_timeout_; | 50 base::TimeDelta derelict_detection_timeout_; |
| 51 | 51 |
| 52 // Timeout before showing our demo app if the machine is in a derelict state. | 52 // Timeout before showing our demo app if the machine is in a derelict state. |
| 53 base::TimeDelta derelict_idle_timeout_; | 53 base::TimeDelta derelict_idle_timeout_; |
| 54 | 54 |
| 55 // Time between updating our total time on oobe. | 55 // Time between updating our total time on oobe. |
| 56 base::TimeDelta oobe_timer_update_interval_; | 56 base::TimeDelta oobe_timer_update_interval_; |
| 57 | 57 |
| 58 bool demo_launched_; | 58 bool demo_launched_ = false; |
| 59 | 59 |
| 60 base::WeakPtrFactory<DemoModeDetector> weak_ptr_factory_; | 60 base::WeakPtrFactory<DemoModeDetector> weak_ptr_factory_; |
| 61 | 61 |
| 62 DISALLOW_COPY_AND_ASSIGN(DemoModeDetector); | 62 DISALLOW_COPY_AND_ASSIGN(DemoModeDetector); |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 } // namespace chromeos | 65 } // namespace chromeos |
| 66 | 66 |
| 67 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_DEMO_MODE_DETECTOR_H_ | 67 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_DEMO_MODE_DEMO_MODE_DETECTOR_H_ |
| OLD | NEW |