Index: content/public/browser/tracing_controller.h |
diff --git a/content/public/browser/tracing_controller.h b/content/public/browser/tracing_controller.h |
index 68184a5a844deaa2cb752643ccfb6a1e57fe011d..53ac0c7ca8d94ea51716ad2d4657a76ebc2d5084 100644 |
--- a/content/public/browser/tracing_controller.h |
+++ b/content/public/browser/tracing_controller.h |
@@ -9,6 +9,7 @@ |
#include <string> |
#include "base/callback.h" |
+#include "base/debug/trace_event.h" |
#include "content/common/content_export.h" |
namespace base { |
@@ -25,12 +26,6 @@ class TracingController; |
// the UI thread. |
class TracingController { |
public: |
- enum Options { |
- DEFAULT_OPTIONS = 0, |
- ENABLE_SYSTRACE = 1 << 0, |
- ENABLE_SAMPLING = 1 << 1, |
- RECORD_CONTINUOUSLY = 1 << 2, // For EnableRecording() only. |
- }; |
CONTENT_EXPORT static TracingController* GetInstance(); |
@@ -66,7 +61,8 @@ class TracingController { |
typedef base::Callback<void()> EnableRecordingDoneCallback; |
virtual bool EnableRecording( |
const std::string& category_filter, |
- TracingController::Options options, |
+ base::debug::TraceOptions trace_options, |
+ bool enable_systrace, |
const EnableRecordingDoneCallback& callback) = 0; |
// Stop recording on all processes. |
@@ -106,7 +102,7 @@ class TracingController { |
typedef base::Callback<void()> EnableMonitoringDoneCallback; |
virtual bool EnableMonitoring( |
const std::string& category_filter, |
- TracingController::Options options, |
+ base::debug::TraceOptions trace_options, |
const EnableMonitoringDoneCallback& callback) = 0; |
// Stop monitoring on all processes. |
@@ -120,7 +116,8 @@ class TracingController { |
// Get the current monitoring configuration. |
virtual void GetMonitoringStatus(bool* out_enabled, |
std::string* out_category_filter, |
- TracingController::Options* out_options) = 0; |
+ base::debug::TraceOptions* out_trace_options, |
+ bool* out_enable_systrace) = 0; |
// Get the current monitoring traced data. |
// |