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 namespace content { | 7 namespace content { |
8 namespace devtools { | 8 namespace devtools { |
9 namespace tracing { | 9 namespace tracing { |
10 | 10 |
11 typedef DevToolsProtocolClient::Response Response; | 11 typedef DevToolsProtocolClient::Response Response; |
12 | 12 |
13 TracingHandler::TracingHandler() { | 13 TracingHandler::TracingHandler() { |
14 } | 14 } |
15 | 15 |
16 TracingHandler::~TracingHandler() { | 16 TracingHandler::~TracingHandler() { |
17 } | 17 } |
18 | 18 |
19 void TracingHandler::SetClient(scoped_ptr<Client> client) { | 19 void TracingHandler::SetClient(scoped_ptr<Client> client) { |
20 client_.swap(client); | 20 client_.swap(client); |
21 } | 21 } |
22 | 22 |
23 Response TracingHandler::Start(const std::string& categories, | |
24 const std::string& options, | |
25 const double* buffer_usage_reporting_interval) { | |
26 return Response::FallThrough(); | |
27 } | |
28 | |
29 scoped_refptr<DevToolsProtocol::Response> TracingHandler::Start( | 23 scoped_refptr<DevToolsProtocol::Response> TracingHandler::Start( |
30 const std::string& categories, | 24 const std::string& categories, |
31 const std::string& options, | 25 const std::string& options, |
32 const double* buffer_usage_reporting_interval, | 26 const double* buffer_usage_reporting_interval, |
33 scoped_refptr<DevToolsProtocol::Command> command) { | 27 scoped_refptr<DevToolsProtocol::Command> command) { |
34 return NULL; | 28 return NULL; |
35 } | 29 } |
36 | 30 |
37 Response TracingHandler::End() { | 31 scoped_refptr<DevToolsProtocol::Response> TracingHandler::Start( |
38 return Response::FallThrough(); | 32 const std::string* categories, |
| 33 const std::string* options, |
| 34 const double* buffer_usage_reporting_interval, |
| 35 scoped_refptr<DevToolsProtocol::Command> command) { |
| 36 return NULL; |
39 } | 37 } |
40 | 38 |
41 scoped_refptr<DevToolsProtocol::Response> TracingHandler::End( | 39 scoped_refptr<DevToolsProtocol::Response> TracingHandler::End( |
42 scoped_refptr<DevToolsProtocol::Command> command) { | 40 scoped_refptr<DevToolsProtocol::Command> command) { |
43 return NULL; | 41 return NULL; |
44 } | 42 } |
45 | 43 |
46 scoped_refptr<DevToolsProtocol::Response> TracingHandler::GetCategories( | 44 scoped_refptr<DevToolsProtocol::Response> TracingHandler::GetCategories( |
47 scoped_refptr<DevToolsProtocol::Command> command) { | 45 scoped_refptr<DevToolsProtocol::Command> command) { |
48 return NULL; | 46 return NULL; |
49 } | 47 } |
50 | 48 |
51 } // namespace tracing | 49 } // namespace tracing |
52 } // namespace devtools | 50 } // namespace devtools |
53 } // namespace content | 51 } // namespace content |
OLD | NEW |