Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: chrome/browser/chromeos/session_length_limiter.h

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.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 "components/prefs/pref_change_registrar.h" 15 #include "components/prefs/pref_change_registrar.h"
16 #include "ui/base/user_activity/user_activity_observer.h" 16 #include "ui/base/user_activity/user_activity_observer.h"
17 17
18 class PrefService;
19 class PrefRegistrySimple; 18 class PrefRegistrySimple;
20 19
21 namespace chromeos { 20 namespace chromeos {
22 21
23 // Enforces a session length limit by terminating the session when the limit is 22 // Enforces a session length limit by terminating the session when the limit is
24 // reached. 23 // reached.
25 class SessionLengthLimiter : public ui::UserActivityObserver { 24 class SessionLengthLimiter : public ui::UserActivityObserver {
26 public: 25 public:
27 class Delegate { 26 class Delegate {
28 public: 27 public:
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 std::unique_ptr<base::OneShotTimer> timer_; 66 std::unique_ptr<base::OneShotTimer> timer_;
68 base::TimeTicks session_start_time_; 67 base::TimeTicks session_start_time_;
69 bool user_activity_seen_; 68 bool user_activity_seen_;
70 69
71 DISALLOW_COPY_AND_ASSIGN(SessionLengthLimiter); 70 DISALLOW_COPY_AND_ASSIGN(SessionLengthLimiter);
72 }; 71 };
73 72
74 } // namespace chromeos 73 } // namespace chromeos
75 74
76 #endif // CHROME_BROWSER_CHROMEOS_SESSION_LENGTH_LIMITER_H_ 75 #endif // CHROME_BROWSER_CHROMEOS_SESSION_LENGTH_LIMITER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/preferences.h ('k') | chrome/browser/chromeos/settings/device_settings_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698