summaryrefslogtreecommitdiff
path: root/src/env.h
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2018-07-16 23:25:17 +0200
committerAnna Henningsen <anna@addaleax.net>2018-08-01 17:16:47 +0200
commit78c21bb3d82ff89042cf85322aac5259724b0f74 (patch)
tree8b50730125d40ec78dd6382942a733f3529f8e36 /src/env.h
parent182051bef753aa9e88571bf6406b8316d15a38eb (diff)
downloadandroid-node-v8-78c21bb3d82ff89042cf85322aac5259724b0f74.tar.gz
android-node-v8-78c21bb3d82ff89042cf85322aac5259724b0f74.tar.bz2
android-node-v8-78c21bb3d82ff89042cf85322aac5259724b0f74.zip
src: reduce unnecessary includes
A forward declaration suffices and means that the tracing agent header and its dependencies don’t need to be included in nearly every Node.js file. PR-URL: https://github.com/nodejs/node/pull/21867 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com> Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Diffstat (limited to 'src/env.h')
-rw-r--r--src/env.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/env.h b/src/env.h
index acbdd01328..29f84a4af1 100644
--- a/src/env.h
+++ b/src/env.h
@@ -35,7 +35,6 @@
#include "v8.h"
#include "node.h"
#include "node_http2_state.h"
-#include "tracing/agent.h"
#include <list>
#include <stdint.h>
@@ -55,6 +54,10 @@ namespace performance {
class performance_state;
}
+namespace tracing {
+class Agent;
+}
+
namespace worker {
class Worker;
}