Index: src/tracing/tracing-category-observer.h |
diff --git a/src/tracing/tracing-category-observer.h b/src/tracing/tracing-category-observer.h |
index 5e463030bcadb59dbb75a34fb268a144f8d7fd7e..0a4e05df715296f6f17b0e7f6b7afe4a659470c0 100644 |
--- a/src/tracing/tracing-category-observer.h |
+++ b/src/tracing/tracing-category-observer.h |
@@ -6,20 +6,30 @@ |
#define V8_TRACING_TRACING_CATEGORY_OBSERVER_H_ |
#include "include/v8-platform.h" |
-#include "include/v8-tracing.h" |
+#include "src/base/lazy-instance.h" |
namespace v8 { |
namespace tracing { |
-class TracingCategoryObserverImpl : public TracingCategoryObserver, |
- public Platform::TraceStateObserver { |
+class TracingCategoryObserver : public Platform::TraceStateObserver { |
public: |
- TracingCategoryObserverImpl(); |
- ~TracingCategoryObserverImpl(); |
+ enum Mode { |
+ ENABLED_BY_NATIVE = 1 << 0, |
+ ENABLED_BY_TRACING = 1 << 1, |
+ }; |
+ |
+ static void SetUp(); |
+ static void TearDown(); |
// v8::Platform::TraceStateObserver |
void OnTraceEnabled() final; |
void OnTraceDisabled() final; |
+ |
+ TracingCategoryObserver() {} |
+ ~TracingCategoryObserver() {} |
+ |
+ private: |
+ static TracingCategoryObserver* instance_; |
}; |
} // namespace tracing |