| Index: src/tracing/tracing-category-observer.h
|
| diff --git a/src/tracing/tracing-category-observer.h b/src/tracing/tracing-category-observer.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5e463030bcadb59dbb75a34fb268a144f8d7fd7e
|
| --- /dev/null
|
| +++ b/src/tracing/tracing-category-observer.h
|
| @@ -0,0 +1,27 @@
|
| +// 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_CATEGORY_OBSERVER_H_
|
| +#define V8_TRACING_TRACING_CATEGORY_OBSERVER_H_
|
| +
|
| +#include "include/v8-platform.h"
|
| +#include "include/v8-tracing.h"
|
| +
|
| +namespace v8 {
|
| +namespace tracing {
|
| +
|
| +class TracingCategoryObserverImpl : public TracingCategoryObserver,
|
| + public Platform::TraceStateObserver {
|
| + public:
|
| + TracingCategoryObserverImpl();
|
| + ~TracingCategoryObserverImpl();
|
| +
|
| + // v8::Platform::TraceStateObserver
|
| + void OnTraceEnabled() final;
|
| + void OnTraceDisabled() final;
|
| +};
|
| +
|
| +} // namespace tracing
|
| +} // namespace v8
|
| +#endif // V8_TRACING_TRACING_CATEGORY_OBSERVER_H_
|
|
|