| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_DEVTOOLS_TRACING_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_TRACING_HANDLER_H_ |
| 6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_TRACING_HANDLER_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_TRACING_HANDLER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 void OnCategoriesReceived(scoped_refptr<DevToolsProtocol::Command> command, | 48 void OnCategoriesReceived(scoped_refptr<DevToolsProtocol::Command> command, |
| 49 const std::set<std::string>& category_set); | 49 const std::set<std::string>& category_set); |
| 50 | 50 |
| 51 base::debug::TraceOptions TraceOptionsFromString(const std::string& options); | 51 base::debug::TraceOptions TraceOptionsFromString(const std::string& options); |
| 52 | 52 |
| 53 void SetupTimer(double usage_reporting_interval); | 53 void SetupTimer(double usage_reporting_interval); |
| 54 | 54 |
| 55 void DisableRecording(bool abort); | 55 void DisableRecording(bool abort); |
| 56 | 56 |
| 57 base::WeakPtrFactory<DevToolsTracingHandler> weak_factory_; | |
| 58 scoped_ptr<base::Timer> buffer_usage_poll_timer_; | 57 scoped_ptr<base::Timer> buffer_usage_poll_timer_; |
| 59 Target target_; | 58 Target target_; |
| 60 bool is_recording_; | 59 bool is_recording_; |
| 61 | 60 |
| 62 static const char* kDefaultCategories; | 61 static const char* kDefaultCategories; |
| 63 static const double kDefaultReportingInterval; | 62 static const double kDefaultReportingInterval; |
| 64 static const double kMinimumReportingInterval; | 63 static const double kMinimumReportingInterval; |
| 65 | 64 |
| 65 base::WeakPtrFactory<DevToolsTracingHandler> weak_factory_; |
| 66 |
| 66 DISALLOW_COPY_AND_ASSIGN(DevToolsTracingHandler); | 67 DISALLOW_COPY_AND_ASSIGN(DevToolsTracingHandler); |
| 67 }; | 68 }; |
| 68 | 69 |
| 69 } // namespace content | 70 } // namespace content |
| 70 | 71 |
| 71 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_TRACING_HANDLER_H_ | 72 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_TRACING_HANDLER_H_ |
| OLD | NEW |