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

Side by Side Diff: content/browser/renderer_host/input/timeout_monitor.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_BROWSER_RENDERER_HOST_INPUT_TIMEOUT_MONITOR_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_TIMEOUT_MONITOR_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TIMEOUT_MONITOR_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TIMEOUT_MONITOR_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 23 matching lines...) Expand all
34 void StartImpl(base::TimeDelta delay); 34 void StartImpl(base::TimeDelta delay);
35 void CheckTimedOut(); 35 void CheckTimedOut();
36 36
37 TimeoutHandler timeout_handler_; 37 TimeoutHandler timeout_handler_;
38 38
39 // Indicates a time in the future when we would consider the input as 39 // Indicates a time in the future when we would consider the input as
40 // having timed out, if it does not receive an appropriate stop request. 40 // having timed out, if it does not receive an appropriate stop request.
41 base::TimeTicks time_when_considered_timed_out_; 41 base::TimeTicks time_when_considered_timed_out_;
42 42
43 // This timer runs to check if |time_when_considered_timed_out_| has past. 43 // This timer runs to check if |time_when_considered_timed_out_| has past.
44 base::OneShotTimer<TimeoutMonitor> timeout_timer_; 44 base::OneShotTimer timeout_timer_;
45 45
46 DISALLOW_COPY_AND_ASSIGN(TimeoutMonitor); 46 DISALLOW_COPY_AND_ASSIGN(TimeoutMonitor);
47 }; 47 };
48 48
49 } // namespace content 49 } // namespace content
50 50
51 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TIMEOUT_MONITOR_H_ 51 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TIMEOUT_MONITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698