#ifndef APIObject_h
#define APIObject_h
#include <wtf/RefCounted.h>
namespace WebKit {
class APIObject : public ThreadSafeRefCounted<APIObject> {
public:
enum Type {
TypeNull = 0,
TypeArray,
TypeAuthenticationChallenge,
TypeAuthenticationDecisionListener,
TypeCertificateInfo,
TypeConnection,
TypeContextMenuItem,
TypeCredential,
TypeData,
TypeDictionary,
TypeError,
TypeGraphicsContext,
TypeImage,
TypeProtectionSpace,
TypeRenderLayer,
TypeRenderObject,
TypeSecurityOrigin,
TypeSerializedScriptValue,
TypeString,
TypeURL,
TypeURLRequest,
TypeURLResponse,
TypeUserContentURLPattern,
TypeBoolean,
TypeDouble,
TypeUInt64,
TypePoint,
TypeSize,
TypeRect,
TypeApplicationCacheManager,
TypeBackForwardList,
TypeBackForwardListItem,
TypeCacheManager,
TypeContext,
TypeCookieManager,
TypeDatabaseManager,
TypeDownload,
TypeFormSubmissionListener,
TypeFrame,
TypeFramePolicyListener,
TypeFullScreenManager,
TypeGeolocationManager,
TypeGeolocationPermissionRequest,
TypeHitTestResult,
TypeGeolocationPosition,
TypeGrammarDetail,
TypeIconDatabase,
TypeInspector,
TypeKeyValueStorageManager,
TypeMediaCacheManager,
TypeNavigationData,
TypeNotification,
TypeNotificationManager,
TypeNotificationPermissionRequest,
TypeOpenPanelParameters,
TypeOpenPanelResultListener,
TypePage,
TypePageGroup,
TypePluginSiteDataManager,
TypePreferences,
TypeTextChecker,
TypeBundle,
TypeBundleBackForwardList,
TypeBundleBackForwardListItem,
TypeBundleDOMWindowExtension,
TypeBundleFrame,
TypeBundleHitTestResult,
TypeBundleInspector,
TypeBundleNavigationAction,
TypeBundleNodeHandle,
TypeBundlePage,
TypeBundlePageGroup,
TypeBundlePageOverlay,
TypeBundleRangeHandle,
TypeBundleScriptWorld,
TypeEditCommandProxy,
TypeView,
#if USE(SOUP)
TypeSoupRequestManager,
#endif
};
virtual ~APIObject()
{
}
virtual Type type() const = 0;
protected:
APIObject();
};
}
#endif // APIObject_h