Bug: Add HTTPConnection->size() and HTTPServer->size()

Need this for proper garbage collection.
pull/22966/head
Ryan 2009-06-20 15:17:54 +02:00
parent ec5f3dbae1
commit 25d14bd001
1 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,8 @@ public:
static v8::Persistent<v8::FunctionTemplate> client_constructor_template; static v8::Persistent<v8::FunctionTemplate> client_constructor_template;
static v8::Persistent<v8::FunctionTemplate> server_constructor_template; static v8::Persistent<v8::FunctionTemplate> server_constructor_template;
virtual size_t size (void) { return sizeof(HTTPConnection); };
protected: protected:
static v8::Handle<v8::Value> NewClient (const v8::Arguments& args); static v8::Handle<v8::Value> NewClient (const v8::Arguments& args);
static v8::Handle<v8::Value> NewServer (const v8::Arguments& args); static v8::Handle<v8::Value> NewServer (const v8::Arguments& args);
@ -41,6 +43,8 @@ public:
static void Initialize (v8::Handle<v8::Object> target); static void Initialize (v8::Handle<v8::Object> target);
static v8::Persistent<v8::FunctionTemplate> constructor_template; static v8::Persistent<v8::FunctionTemplate> constructor_template;
virtual size_t size (void) { return sizeof(HTTPServer); };
protected: protected:
static v8::Handle<v8::Value> New (const v8::Arguments& args); static v8::Handle<v8::Value> New (const v8::Arguments& args);