| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/devtools/protocol/tracing_handler.h" | 5 #include "content/browser/devtools/protocol/tracing_handler.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/format_macros.h" | 10 #include "base/format_macros.h" |
| 11 #include "base/memory/ref_counted_memory.h" |
| 11 #include "base/strings/string_split.h" | 12 #include "base/strings/string_split.h" |
| 12 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
| 13 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 14 #include "base/timer/timer.h" | 15 #include "base/timer/timer.h" |
| 15 #include "base/trace_event/memory_dump_manager.h" | 16 #include "base/trace_event/memory_dump_manager.h" |
| 16 #include "base/trace_event/trace_event_impl.h" | 17 #include "base/trace_event/trace_event_impl.h" |
| 17 #include "base/trace_event/tracing_agent.h" | 18 #include "base/trace_event/tracing_agent.h" |
| 18 #include "components/tracing/trace_config_file.h" | 19 #include "components/tracing/trace_config_file.h" |
| 19 #include "content/browser/devtools/devtools_io_context.h" | 20 #include "content/browser/devtools/devtools_io_context.h" |
| 20 #include "content/browser/tracing/tracing_controller_impl.h" | 21 #include "content/browser/tracing/tracing_controller_impl.h" |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 } | 277 } |
| 277 | 278 |
| 278 bool TracingHandler::IsStartupTracingActive() { | 279 bool TracingHandler::IsStartupTracingActive() { |
| 279 return ::tracing::TraceConfigFile::GetInstance()->IsEnabled() && | 280 return ::tracing::TraceConfigFile::GetInstance()->IsEnabled() && |
| 280 TracingController::GetInstance()->IsTracing(); | 281 TracingController::GetInstance()->IsTracing(); |
| 281 } | 282 } |
| 282 | 283 |
| 283 } // namespace tracing | 284 } // namespace tracing |
| 284 } // namespace devtools | 285 } // namespace devtools |
| 285 } // namespace content | 286 } // namespace content |
| OLD | NEW |