Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Unified Diff: src/tracing/tracing-flag.h

Issue 2436273002: [Tracing] Implement TracingCategoryObserver. (Closed)
Patch Set: fix compilation error Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/tracing/tracing-flag.h
diff --git a/src/tracing/tracing-flag.h b/src/tracing/tracing-flag.h
new file mode 100644
index 0000000000000000000000000000000000000000..70902440572d4be6f7e7262a171a640e87a819bd
--- /dev/null
+++ b/src/tracing/tracing-flag.h
@@ -0,0 +1,29 @@
+// Copyright 2016 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef V8_TRACING_TRACING_FLAG_H_
+#define V8_TRACING_TRACING_FLAG_H_
+
+#include "include/v8-platform.h"
+
+namespace v8 {
+namespace tracing {
+
+class TracingFlagImpl : public Platform::TracingFlag,
+ private Platform::TraceStateObserver {
+ public:
+ TracingFlagImpl();
+ ~TracingFlagImpl();
+
+ // v8::Platform::TraceStateObserver
+ void OnTraceEnabled() final;
+ void OnTraceDisabled() final;
+
+ private:
+ v8::Platform* platform_;
+};
+
+} // namespace tracing
+} // namespace v8
+#endif // V8_TRACING_TRACING_FLAG_H_

Powered by Google App Engine
This is Rietveld 408576698