| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 void OnTraceDataCollected(const std::string& trace_fragment); | 47 void OnTraceDataCollected(const std::string& trace_fragment); |
| 48 void OnTraceComplete(); | 48 void OnTraceComplete(); |
| 49 void OnTraceToStreamComplete(const std::string& stream_handle); | 49 void OnTraceToStreamComplete(const std::string& stream_handle); |
| 50 | 50 |
| 51 // Protocol methods. | 51 // Protocol methods. |
| 52 Response Start(DevToolsCommandId command_id, | 52 Response Start(DevToolsCommandId command_id, |
| 53 const std::string* categories, | 53 const std::string* categories, |
| 54 const std::string* options, | 54 const std::string* options, |
| 55 const double* buffer_usage_reporting_interval, | 55 const double* buffer_usage_reporting_interval, |
| 56 const std::string* transfer_mode, | 56 const std::string* transfer_mode, |
| 57 const std::unique_ptr<base::DictionaryValue>& config); | 57 const std::unique_ptr<base::DictionaryValue>& config, |
| 58 const std::string* reloadingBannerMessage); |
| 58 Response End(DevToolsCommandId command_id); | 59 Response End(DevToolsCommandId command_id); |
| 59 Response GetCategories(DevToolsCommandId command); | 60 Response GetCategories(DevToolsCommandId command); |
| 60 Response RequestMemoryDump(DevToolsCommandId command_id); | 61 Response RequestMemoryDump(DevToolsCommandId command_id); |
| 61 Response RecordClockSyncMarker(const std::string& sync_id); | 62 Response RecordClockSyncMarker(const std::string& sync_id); |
| 62 | 63 |
| 63 bool did_initiate_recording() { return did_initiate_recording_; } | 64 bool did_initiate_recording() { return did_initiate_recording_; } |
| 64 | 65 |
| 65 private: | 66 private: |
| 66 void OnRecordingEnabled(DevToolsCommandId command_id); | 67 void OnRecordingEnabled(DevToolsCommandId command_id); |
| 67 void OnBufferUsage(float percent_full, size_t approximate_event_count); | 68 void OnBufferUsage(float percent_full, size_t approximate_event_count); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 93 FRIEND_TEST_ALL_PREFIXES(TracingHandlerTest, | 94 FRIEND_TEST_ALL_PREFIXES(TracingHandlerTest, |
| 94 GetTraceConfigFromDevToolsConfig); | 95 GetTraceConfigFromDevToolsConfig); |
| 95 DISALLOW_COPY_AND_ASSIGN(TracingHandler); | 96 DISALLOW_COPY_AND_ASSIGN(TracingHandler); |
| 96 }; | 97 }; |
| 97 | 98 |
| 98 } // namespace tracing | 99 } // namespace tracing |
| 99 } // namespace devtools | 100 } // namespace devtools |
| 100 } // namespace content | 101 } // namespace content |
| 101 | 102 |
| 102 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_ | 103 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_ |
| OLD | NEW |