OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef V8_TRACING_TRACING_FLAG_H_ |
| 6 #define V8_TRACING_TRACING_FLAG_H_ |
| 7 |
| 8 #include "include/v8-platform.h" |
| 9 |
| 10 namespace v8 { |
| 11 namespace tracing { |
| 12 |
| 13 class TracingFlagImpl : public Platform::TracingFlag, |
| 14 private Platform::TraceStateObserver { |
| 15 public: |
| 16 TracingFlagImpl(); |
| 17 ~TracingFlagImpl(); |
| 18 |
| 19 // v8::Platform::TraceStateObserver |
| 20 void OnTraceEnabled() final; |
| 21 void OnTraceDisabled() final; |
| 22 |
| 23 private: |
| 24 v8::Platform* platform_; |
| 25 }; |
| 26 |
| 27 } // namespace tracing |
| 28 } // namespace v8 |
| 29 #endif // V8_TRACING_TRACING_FLAG_H_ |
OLD | NEW |