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 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_ |
6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 void OnTraceDataCollected(const std::string& trace_fragment); | 36 void OnTraceDataCollected(const std::string& trace_fragment); |
37 void OnTraceComplete(); | 37 void OnTraceComplete(); |
38 | 38 |
39 Response Start(DevToolsCommandId command_id, | 39 Response Start(DevToolsCommandId command_id, |
40 const std::string* categories, | 40 const std::string* categories, |
41 const std::string* options, | 41 const std::string* options, |
42 const double* buffer_usage_reporting_interval); | 42 const double* buffer_usage_reporting_interval); |
43 Response End(DevToolsCommandId command_id); | 43 Response End(DevToolsCommandId command_id); |
44 Response GetCategories(DevToolsCommandId command); | 44 Response GetCategories(DevToolsCommandId command); |
| 45 Response RequestMemoryDump(DevToolsCommandId command_id); |
45 bool did_initiate_recording() { return did_initiate_recording_; } | 46 bool did_initiate_recording() { return did_initiate_recording_; } |
46 | 47 |
47 private: | 48 private: |
48 void OnRecordingEnabled(DevToolsCommandId command_id); | 49 void OnRecordingEnabled(DevToolsCommandId command_id); |
49 void OnBufferUsage(float percent_full, size_t approximate_event_count); | 50 void OnBufferUsage(float percent_full, size_t approximate_event_count); |
50 | 51 |
51 void OnCategoriesReceived(DevToolsCommandId command_id, | 52 void OnCategoriesReceived(DevToolsCommandId command_id, |
52 const std::set<std::string>& category_set); | 53 const std::set<std::string>& category_set); |
53 | 54 |
54 void SetupTimer(double usage_reporting_interval); | 55 void SetupTimer(double usage_reporting_interval); |
(...skipping 10 matching lines...) Expand all Loading... |
65 base::WeakPtrFactory<TracingHandler> weak_factory_; | 66 base::WeakPtrFactory<TracingHandler> weak_factory_; |
66 | 67 |
67 DISALLOW_COPY_AND_ASSIGN(TracingHandler); | 68 DISALLOW_COPY_AND_ASSIGN(TracingHandler); |
68 }; | 69 }; |
69 | 70 |
70 } // namespace tracing | 71 } // namespace tracing |
71 } // namespace devtools | 72 } // namespace devtools |
72 } // namespace content | 73 } // namespace content |
73 | 74 |
74 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_ | 75 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_ |
OLD | NEW |