summaryrefslogtreecommitdiff
path: root/src/stream_wrap.h
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2017-10-12 07:11:03 +0200
committerJames M Snell <jasnell@gmail.com>2017-10-13 13:05:49 -0700
commit00fe76d2df4651b453a906fac0cccc5fcafb067a (patch)
treecd72f00b5742577f41913b21f1bde6b5d3954c1c /src/stream_wrap.h
parent7245e852f2191a256fc748b891266f4b3a91ac10 (diff)
downloadnode-new-00fe76d2df4651b453a906fac0cccc5fcafb067a.tar.gz
src: rename StreamWrap to LibuvStreamWrap
This should help clarify what kind of resource a `StreamWrap` represents. PR-URL: https://github.com/nodejs/node/pull/16157 Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'src/stream_wrap.h')
-rw-r--r--src/stream_wrap.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/stream_wrap.h b/src/stream_wrap.h
index 584e524df5..d8fbcf709a 100644
--- a/src/stream_wrap.h
+++ b/src/stream_wrap.h
@@ -33,10 +33,7 @@
namespace node {
-// Forward declaration
-class StreamWrap;
-
-class StreamWrap : public HandleWrap, public StreamBase {
+class LibuvStreamWrap : public HandleWrap, public StreamBase {
public:
static void Initialize(v8::Local<v8::Object> target,
v8::Local<v8::Value> unused,
@@ -78,12 +75,12 @@ class StreamWrap : public HandleWrap, public StreamBase {
}
protected:
- StreamWrap(Environment* env,
- v8::Local<v8::Object> object,
- uv_stream_t* stream,
- AsyncWrap::ProviderType provider);
+ LibuvStreamWrap(Environment* env,
+ v8::Local<v8::Object> object,
+ uv_stream_t* stream,
+ AsyncWrap::ProviderType provider);
- ~StreamWrap() {
+ ~LibuvStreamWrap() {
}
AsyncWrap* GetAsyncWrap() override;