| 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_SESSION_LENGTH_LIMITER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_SESSION_LENGTH_LIMITER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_SESSION_LENGTH_LIMITER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_SESSION_LENGTH_LIMITER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/prefs/pref_change_registrar.h" | 11 #include "base/prefs/pref_change_registrar.h" |
| 12 #include "base/threading/thread_checker.h" | 12 #include "base/threading/thread_checker.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 "ui/base/user_activity/user_activity_observer.h" | 15 #include "ui/base/user_activity/user_activity_observer.h" |
| 16 | 16 |
| 17 class PrefService; | 17 class PrefService; |
| 18 class PrefRegistrySimple; | 18 class PrefRegistrySimple; |
| 19 | 19 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 scoped_ptr<base::OneShotTimer> timer_; | 66 scoped_ptr<base::OneShotTimer> timer_; |
| 67 base::TimeTicks session_start_time_; | 67 base::TimeTicks session_start_time_; |
| 68 bool user_activity_seen_; | 68 bool user_activity_seen_; |
| 69 | 69 |
| 70 DISALLOW_COPY_AND_ASSIGN(SessionLengthLimiter); | 70 DISALLOW_COPY_AND_ASSIGN(SessionLengthLimiter); |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 } // namespace chromeos | 73 } // namespace chromeos |
| 74 | 74 |
| 75 #endif // CHROME_BROWSER_CHROMEOS_SESSION_LENGTH_LIMITER_H_ | 75 #endif // CHROME_BROWSER_CHROMEOS_SESSION_LENGTH_LIMITER_H_ |
| OLD | NEW |