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_POWER_SESSION_LENGTH_LIMITER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POWER_SESSION_LENGTH_LIMITER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_POWER_SESSION_LENGTH_LIMITER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POWER_SESSION_LENGTH_LIMITER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/prefs/public/pref_change_registrar.h" | 10 #include "base/prefs/pref_change_registrar.h" |
11 #include "base/threading/thread_checker.h" | 11 #include "base/threading/thread_checker.h" |
12 #include "base/time.h" | 12 #include "base/time.h" |
13 #include "base/timer.h" | 13 #include "base/timer.h" |
14 | 14 |
15 class PrefService; | 15 class PrefService; |
16 class PrefRegistrySimple; | 16 class PrefRegistrySimple; |
17 | 17 |
18 namespace chromeos { | 18 namespace chromeos { |
19 | 19 |
20 // Enforces a session length limit by terminating the session when the limit is | 20 // Enforces a session length limit by terminating the session when the limit is |
(...skipping 24 matching lines...) Expand all Loading... |
45 | 45 |
46 scoped_ptr<base::OneShotTimer<SessionLengthLimiter::Delegate> > timer_; | 46 scoped_ptr<base::OneShotTimer<SessionLengthLimiter::Delegate> > timer_; |
47 base::Time session_start_time_; | 47 base::Time session_start_time_; |
48 | 48 |
49 DISALLOW_COPY_AND_ASSIGN(SessionLengthLimiter); | 49 DISALLOW_COPY_AND_ASSIGN(SessionLengthLimiter); |
50 }; | 50 }; |
51 | 51 |
52 } // namespace chromeos | 52 } // namespace chromeos |
53 | 53 |
54 #endif // CHROME_BROWSER_CHROMEOS_POWER_SESSION_LENGTH_LIMITER_H_ | 54 #endif // CHROME_BROWSER_CHROMEOS_POWER_SESSION_LENGTH_LIMITER_H_ |
OLD | NEW |