| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |