mirror of
https://github.com/nodejs/node.git
synced 2026-11-18 18:15:17 -05:00
Node codebase has evolved a lot in the more than 10 years of its existence. As more features (and code) have been added, changed, removed, it's sometimes hard to keep track of what gets used and what not. This commits attempts to clean some of those potentially left-over headers using suggestions from include-what-you-use Refs: https://github.com/nodejs/node/issues/27531 PR-URL: https://github.com/nodejs/node/pull/30328 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
31 lines
686 B
C++
31 lines
686 B
C++
#ifndef SRC_CONNECTION_WRAP_H_
|
|
#define SRC_CONNECTION_WRAP_H_
|
|
|
|
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
|
|
|
#include "stream_wrap.h"
|
|
|
|
namespace node {
|
|
|
|
class Environment;
|
|
|
|
template <typename WrapType, typename UVType>
|
|
class ConnectionWrap : public LibuvStreamWrap {
|
|
public:
|
|
static void OnConnection(uv_stream_t* handle, int status);
|
|
static void AfterConnect(uv_connect_t* req, int status);
|
|
|
|
protected:
|
|
ConnectionWrap(Environment* env,
|
|
v8::Local<v8::Object> object,
|
|
ProviderType provider);
|
|
|
|
UVType handle_;
|
|
};
|
|
|
|
} // namespace node
|
|
|
|
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
|
|
|
#endif // SRC_CONNECTION_WRAP_H_
|