diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-07-16 23:25:17 +0200 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-08-01 17:16:47 +0200 |
commit | 78c21bb3d82ff89042cf85322aac5259724b0f74 (patch) | |
tree | 8b50730125d40ec78dd6382942a733f3529f8e36 /src/env.h | |
parent | 182051bef753aa9e88571bf6406b8316d15a38eb (diff) | |
download | android-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.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; } |