| 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 #include "content/browser/tracing/tracing_controller_impl.h" | 4 #include "content/browser/tracing/tracing_controller_impl.h" |
| 5 | 5 |
| 6 #include "base/bind.h" | 6 #include "base/bind.h" |
| 7 #include "base/files/file_util.h" | 7 #include "base/files/file_util.h" |
| 8 #include "base/json/json_writer.h" | 8 #include "base/json/json_writer.h" |
| 9 #include "base/macros.h" |
| 9 #include "base/strings/pattern.h" | 10 #include "base/strings/pattern.h" |
| 10 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
| 11 #include "third_party/zlib/zlib.h" | 12 #include "third_party/zlib/zlib.h" |
| 12 | 13 |
| 13 namespace content { | 14 namespace content { |
| 14 | 15 |
| 15 namespace { | 16 namespace { |
| 16 | 17 |
| 17 const char kChromeTraceLabel[] = "traceEvents"; | 18 const char kChromeTraceLabel[] = "traceEvents"; |
| 18 const char kMetadataTraceLabel[] = "metadata"; | 19 const char kMetadataTraceLabel[] = "metadata"; |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 return new StringTraceDataEndpoint(callback); | 365 return new StringTraceDataEndpoint(callback); |
| 365 } | 366 } |
| 366 | 367 |
| 367 scoped_refptr<TracingController::TraceDataEndpoint> | 368 scoped_refptr<TracingController::TraceDataEndpoint> |
| 368 TracingController::CreateFileEndpoint(const base::FilePath& file_path, | 369 TracingController::CreateFileEndpoint(const base::FilePath& file_path, |
| 369 const base::Closure& callback) { | 370 const base::Closure& callback) { |
| 370 return new FileTraceDataEndpoint(file_path, callback); | 371 return new FileTraceDataEndpoint(file_path, callback); |
| 371 } | 372 } |
| 372 | 373 |
| 373 } // namespace content | 374 } // namespace content |
| OLD | NEW |