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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 void OnTraceDataCollected(const std::string& trace_fragment); | 45 void OnTraceDataCollected(const std::string& trace_fragment); |
46 void OnTraceComplete(); | 46 void OnTraceComplete(); |
47 void OnTraceToStreamComplete(const std::string& stream_handle); | 47 void OnTraceToStreamComplete(const std::string& stream_handle); |
48 | 48 |
49 // Protocol methods. | 49 // Protocol methods. |
50 Response Start(DevToolsCommandId command_id, | 50 Response Start(DevToolsCommandId command_id, |
51 const std::string* categories, | 51 const std::string* categories, |
52 const std::string* options, | 52 const std::string* options, |
53 const double* buffer_usage_reporting_interval, | 53 const double* buffer_usage_reporting_interval, |
54 const std::string* transfer_mode); | 54 const std::string* transfer_mode, |
| 55 const scoped_ptr<base::DictionaryValue>& config); |
55 Response End(DevToolsCommandId command_id); | 56 Response End(DevToolsCommandId command_id); |
56 Response GetCategories(DevToolsCommandId command); | 57 Response GetCategories(DevToolsCommandId command); |
57 Response RequestMemoryDump(DevToolsCommandId command_id); | 58 Response RequestMemoryDump(DevToolsCommandId command_id); |
58 Response RecordClockSyncMarker(const std::string& sync_id); | 59 Response RecordClockSyncMarker(const std::string& sync_id); |
59 | 60 |
60 bool did_initiate_recording() { return did_initiate_recording_; } | 61 bool did_initiate_recording() { return did_initiate_recording_; } |
61 | 62 |
62 private: | 63 private: |
63 void OnRecordingEnabled(DevToolsCommandId command_id); | 64 void OnRecordingEnabled(DevToolsCommandId command_id); |
64 void OnBufferUsage(float percent_full, size_t approximate_event_count); | 65 void OnBufferUsage(float percent_full, size_t approximate_event_count); |
(...skipping 20 matching lines...) Expand all Loading... |
85 base::WeakPtrFactory<TracingHandler> weak_factory_; | 86 base::WeakPtrFactory<TracingHandler> weak_factory_; |
86 | 87 |
87 DISALLOW_COPY_AND_ASSIGN(TracingHandler); | 88 DISALLOW_COPY_AND_ASSIGN(TracingHandler); |
88 }; | 89 }; |
89 | 90 |
90 } // namespace tracing | 91 } // namespace tracing |
91 } // namespace devtools | 92 } // namespace devtools |
92 } // namespace content | 93 } // namespace content |
93 | 94 |
94 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_ | 95 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_ |
OLD | NEW |