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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 Response GetCategories(DevToolsCommandId command); | 44 Response GetCategories(DevToolsCommandId command); |
45 Response RequestMemoryDump(DevToolsCommandId command_id); | 45 Response RequestMemoryDump(DevToolsCommandId command_id); |
46 bool did_initiate_recording() { return did_initiate_recording_; } | 46 bool did_initiate_recording() { return did_initiate_recording_; } |
47 | 47 |
48 private: | 48 private: |
49 void OnRecordingEnabled(DevToolsCommandId command_id); | 49 void OnRecordingEnabled(DevToolsCommandId command_id); |
50 void OnBufferUsage(float percent_full, size_t approximate_event_count); | 50 void OnBufferUsage(float percent_full, size_t approximate_event_count); |
51 | 51 |
52 void OnCategoriesReceived(DevToolsCommandId command_id, | 52 void OnCategoriesReceived(DevToolsCommandId command_id, |
53 const std::set<std::string>& category_set); | 53 const std::set<std::string>& category_set); |
| 54 void OnMemoryDumpFinished(DevToolsCommandId command_id, |
| 55 uint64 dump_guid, |
| 56 bool success); |
54 | 57 |
55 void SetupTimer(double usage_reporting_interval); | 58 void SetupTimer(double usage_reporting_interval); |
56 | 59 |
57 void DisableRecording(bool abort); | 60 void DisableRecording(bool abort); |
58 | 61 |
59 bool IsRecording() const; | 62 bool IsRecording() const; |
60 | 63 |
61 scoped_ptr<base::Timer> buffer_usage_poll_timer_; | 64 scoped_ptr<base::Timer> buffer_usage_poll_timer_; |
62 Target target_; | 65 Target target_; |
63 | 66 |
64 scoped_ptr<Client> client_; | 67 scoped_ptr<Client> client_; |
65 bool did_initiate_recording_; | 68 bool did_initiate_recording_; |
66 base::WeakPtrFactory<TracingHandler> weak_factory_; | 69 base::WeakPtrFactory<TracingHandler> weak_factory_; |
67 | 70 |
68 DISALLOW_COPY_AND_ASSIGN(TracingHandler); | 71 DISALLOW_COPY_AND_ASSIGN(TracingHandler); |
69 }; | 72 }; |
70 | 73 |
71 } // namespace tracing | 74 } // namespace tracing |
72 } // namespace devtools | 75 } // namespace devtools |
73 } // namespace content | 76 } // namespace content |
74 | 77 |
75 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_ | 78 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_ |
OLD | NEW |