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