OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/lazy_instance.h" | 6 #include "base/lazy_instance.h" |
7 #include "base/memory/singleton.h" | 7 #include "base/memory/singleton.h" |
8 #include "base/thread_task_runner_handle.h" | 8 #include "base/threading/thread_task_runner_handle.h" |
9 #include "base/trace_event/trace_event_impl.h" | 9 #include "base/trace_event/trace_event_impl.h" |
10 #include "content/browser/tracing/power_tracing_agent.h" | 10 #include "content/browser/tracing/power_tracing_agent.h" |
11 #include "tools/battor_agent/battor_finder.h" | 11 #include "tools/battor_agent/battor_finder.h" |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 const char kPowerTracingAgentName[] = "battor"; | 17 const char kPowerTracingAgentName[] = "battor"; |
18 const char kPowerTraceLabel[] = "powerTraceAsString"; | 18 const char kPowerTraceLabel[] = "powerTraceAsString"; |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 record_clock_sync_marker_callback_.Reset(); | 176 record_clock_sync_marker_callback_.Reset(); |
177 record_clock_sync_marker_sync_id_ = std::string(); | 177 record_clock_sync_marker_sync_id_ = std::string(); |
178 record_clock_sync_marker_start_time_ = base::TimeTicks(); | 178 record_clock_sync_marker_start_time_ = base::TimeTicks(); |
179 } | 179 } |
180 | 180 |
181 bool PowerTracingAgent::SupportsExplicitClockSync() { | 181 bool PowerTracingAgent::SupportsExplicitClockSync() { |
182 return battor_agent_->SupportsExplicitClockSync(); | 182 return battor_agent_->SupportsExplicitClockSync(); |
183 } | 183 } |
184 | 184 |
185 } // namespace content | 185 } // namespace content |
OLD | NEW |