Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/env.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/env.h')
-rw-r--r--src/env.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/env.h b/src/env.h
index 778f0aa1e2f..f3d6ec4d474 100644
--- a/src/env.h
+++ b/src/env.h
@@ -75,6 +75,10 @@ class V8CoverageConnection;
class V8CpuProfilerConnection;
class V8HeapProfilerConnection;
} // namespace profiler
+
+namespace inspector {
+class ParentInspectorHandle;
+}
#endif // HAVE_INSPECTOR
namespace worker {
@@ -797,6 +801,13 @@ class Environment : public MemoryRetainer {
void MemoryInfo(MemoryTracker* tracker) const override;
void CreateProperties();
+ // Should be called before InitializeInspector()
+ void InitializeDiagnostics();
+#if HAVE_INSPECTOR && NODE_USE_V8_PLATFORM
+ // If the environment is created for a worker, pass parent_handle and
+ // the ownership if transferred into the Environment.
+ int InitializeInspector(inspector::ParentInspectorHandle* parent_handle);
+#endif
inline size_t async_callback_scope_depth() const;
inline void PushAsyncCallbackScope();