| 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_UI_WEBUI_CHROMEOS_LOGIN_DEMO_MODE_DETECTOR_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_DEMO_MODE_DETECTOR_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_DEMO_MODE_DETECTOR_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 12 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 13 #include "base/timer/timer.h" | 14 #include "base/timer/timer.h" |
| 14 #include "chrome/browser/chromeos/idle_detector.h" | 15 #include "chrome/browser/chromeos/idle_detector.h" |
| 15 | 16 |
| 16 class PrefRegistrySimple; | 17 class PrefRegistrySimple; |
| 17 | 18 |
| 18 namespace chromeos { | 19 namespace chromeos { |
| 19 | 20 |
| 20 // Helper for idle state and demo-mode detection. | 21 // Helper for idle state and demo-mode detection. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 bool demo_launched_; | 58 bool demo_launched_; |
| 58 | 59 |
| 59 base::WeakPtrFactory<DemoModeDetector> weak_ptr_factory_; | 60 base::WeakPtrFactory<DemoModeDetector> weak_ptr_factory_; |
| 60 | 61 |
| 61 DISALLOW_COPY_AND_ASSIGN(DemoModeDetector); | 62 DISALLOW_COPY_AND_ASSIGN(DemoModeDetector); |
| 62 }; | 63 }; |
| 63 | 64 |
| 64 } // namespace chromeos | 65 } // namespace chromeos |
| 65 | 66 |
| 66 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_DEMO_MODE_DETECTOR_H_ | 67 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_DEMO_MODE_DETECTOR_H_ |
| OLD | NEW |