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

Side by Side Diff: content/browser/devtools/protocol/tracing_handler.cc

Issue 2028043002: tracing: restructure to the components/tracing folder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 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/json/json_writer.h" 11 #include "base/json/json_writer.h"
12 #include "base/memory/ref_counted_memory.h" 12 #include "base/memory/ref_counted_memory.h"
13 #include "base/strings/string_split.h" 13 #include "base/strings/string_split.h"
14 #include "base/strings/stringprintf.h" 14 #include "base/strings/stringprintf.h"
15 #include "base/time/time.h" 15 #include "base/time/time.h"
16 #include "base/timer/timer.h" 16 #include "base/timer/timer.h"
17 #include "base/trace_event/memory_dump_manager.h" 17 #include "base/trace_event/memory_dump_manager.h"
18 #include "base/trace_event/trace_event_impl.h" 18 #include "base/trace_event/trace_event_impl.h"
19 #include "base/trace_event/tracing_agent.h" 19 #include "base/trace_event/tracing_agent.h"
20 #include "components/tracing/trace_config_file.h" 20 #include "components/tracing/browser/trace_config_file.h"
21 #include "content/browser/devtools/devtools_io_context.h" 21 #include "content/browser/devtools/devtools_io_context.h"
22 #include "content/browser/tracing/tracing_controller_impl.h" 22 #include "content/browser/tracing/tracing_controller_impl.h"
23 23
24 namespace content { 24 namespace content {
25 namespace devtools { 25 namespace devtools {
26 namespace tracing { 26 namespace tracing {
27 27
28 using Response = DevToolsProtocolClient::Response; 28 using Response = DevToolsProtocolClient::Response;
29 29
30 namespace { 30 namespace {
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 std::string mode; 348 std::string mode;
349 if (tracing_dict->GetString(kRecordModeParam, &mode)) 349 if (tracing_dict->GetString(kRecordModeParam, &mode))
350 tracing_dict->SetString(kRecordModeParam, ConvertFromCamelCase(mode, '-')); 350 tracing_dict->SetString(kRecordModeParam, ConvertFromCamelCase(mode, '-'));
351 351
352 return base::trace_event::TraceConfig(*tracing_dict); 352 return base::trace_event::TraceConfig(*tracing_dict);
353 } 353 }
354 354
355 } // namespace tracing 355 } // namespace tracing
356 } // namespace devtools 356 } // namespace devtools
357 } // namespace content 357 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698