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

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

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 3 months 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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // any time, switching between the two behaviors. 56 // any time, switching between the two behaviors.
57 void UpdateSessionStartTime(); 57 void UpdateSessionStartTime();
58 58
59 void UpdateLimit(); 59 void UpdateLimit();
60 60
61 base::ThreadChecker thread_checker_; 61 base::ThreadChecker thread_checker_;
62 62
63 scoped_ptr<Delegate> delegate_; 63 scoped_ptr<Delegate> delegate_;
64 PrefChangeRegistrar pref_change_registrar_; 64 PrefChangeRegistrar pref_change_registrar_;
65 65
66 scoped_ptr<base::OneShotTimer<SessionLengthLimiter::Delegate> > 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_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/power/idle_action_warning_dialog_view.h ('k') | chrome/browser/chromeos/session_length_limiter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698