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

Side by Side Diff: content/browser/renderer_host/input/timeout_monitor.cc

Issue 866803003: Mechanical rename of tracing includes for /content [1/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_trace_part2
Patch Set: Created 5 years, 11 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 #include "content/browser/renderer_host/input/timeout_monitor.h" 5 #include "content/browser/renderer_host/input/timeout_monitor.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/trace_event/trace_event.h"
8 8
9 using base::TimeDelta; 9 using base::TimeDelta;
10 using base::TimeTicks; 10 using base::TimeTicks;
11 11
12 namespace content { 12 namespace content {
13 13
14 TimeoutMonitor::TimeoutMonitor(const TimeoutHandler& timeout_handler) 14 TimeoutMonitor::TimeoutMonitor(const TimeoutHandler& timeout_handler)
15 : timeout_handler_(timeout_handler) { 15 : timeout_handler_(timeout_handler) {
16 DCHECK(!timeout_handler_.is_null()); 16 DCHECK(!timeout_handler_.is_null());
17 } 17 }
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 time_when_considered_timed_out_ = TimeTicks(); 103 time_when_considered_timed_out_ = TimeTicks();
104 timeout_handler_.Run(); 104 timeout_handler_.Run();
105 } 105 }
106 106
107 bool TimeoutMonitor::IsRunning() const { 107 bool TimeoutMonitor::IsRunning() const {
108 return timeout_timer_.IsRunning() && 108 return timeout_timer_.IsRunning() &&
109 !time_when_considered_timed_out_.is_null(); 109 !time_when_considered_timed_out_.is_null();
110 } 110 }
111 111
112 } // namespace content 112 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698