Reviewed by Eric.
[WebKit-https.git] / JavaScriptGlue / JSBase.h
1 //
2 // JSBase.h
3 //
4
5 #ifndef JSBase_h
6 #define JSBase_h
7
8 #include "JSUtils.h"
9
10 class JSBase {
11     public:
12         JSBase(JSTypeID type);
13         virtual ~JSBase();
14
15         JSBase* Retain();
16         void Release();
17         CFIndex RetainCount() const;
18         JSTypeID GetTypeID() const;
19
20         virtual CFStringRef CopyDescription();
21         virtual UInt8 Equal(JSBase* other);
22
23     private:
24         JSTypeID fTypeID;
25         CFIndex fRetainCount;
26 };
27
28 #endif