OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/devtools_tracing_handler.h" | 5 #include "content/browser/devtools/devtools_tracing_handler.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/string_split.h" | 11 #include "base/strings/string_split.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "content/browser/devtools/devtools_http_handler_impl.h" | 13 #include "content/browser/devtools/devtools_http_handler_impl.h" |
14 #include "content/public/browser/trace_controller.h" | 14 #include "content/public/browser/trace_controller.h" |
15 #include "content/public/browser/trace_subscriber.h" | 15 #include "content/public/browser/trace_subscriber.h" |
16 | 16 |
17 namespace content { | 17 namespace content { |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 const char kTracingStartCommand[] = "Tracing.start"; | 21 const char kTracingStartCommand[] = "Tracing.start"; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 } | 101 } |
102 | 102 |
103 | 103 |
104 scoped_ptr<DevToolsProtocol::Response> | 104 scoped_ptr<DevToolsProtocol::Response> |
105 DevToolsTracingHandler::OnEnd(DevToolsProtocol::Command* command) { | 105 DevToolsTracingHandler::OnEnd(DevToolsProtocol::Command* command) { |
106 TraceController::GetInstance()->EndTracingAsync(this); | 106 TraceController::GetInstance()->EndTracingAsync(this); |
107 return command->SuccessResponse(NULL); | 107 return command->SuccessResponse(NULL); |
108 } | 108 } |
109 | 109 |
110 } // namespace content | 110 } // namespace content |
OLD | NEW |