IDBIndexBackendInterface.h [plain text]
#ifndef IDBIndexBackendInterface_h
#define IDBIndexBackendInterface_h
#include "PlatformString.h"
#include <wtf/Forward.h>
#include <wtf/ThreadSafeRefCounted.h>
#if ENABLE(INDEXED_DATABASE)
namespace WebCore {
class IDBCallbacks;
class IDBKey;
class IDBKeyRange;
class IDBTransactionBackendInterface;
typedef int ExceptionCode;
class IDBIndexBackendInterface : public ThreadSafeRefCounted<IDBIndexBackendInterface> {
public:
virtual ~IDBIndexBackendInterface() { }
virtual String name() = 0;
virtual String storeName() = 0;
virtual String keyPath() = 0;
virtual bool unique() = 0;
virtual bool multiEntry() = 0;
virtual void openCursor(PassRefPtr<IDBKeyRange>, unsigned short direction, PassRefPtr<IDBCallbacks>, IDBTransactionBackendInterface*, ExceptionCode&) = 0;
virtual void count(PassRefPtr<IDBKeyRange>, PassRefPtr<IDBCallbacks>, IDBTransactionBackendInterface*, ExceptionCode&) = 0;
virtual void openKeyCursor(PassRefPtr<IDBKeyRange>, unsigned short direction, PassRefPtr<IDBCallbacks>, IDBTransactionBackendInterface*, ExceptionCode&) = 0;
virtual void get(PassRefPtr<IDBKeyRange>, PassRefPtr<IDBCallbacks>, IDBTransactionBackendInterface*, ExceptionCode&) = 0;
virtual void getKey(PassRefPtr<IDBKeyRange>, PassRefPtr<IDBCallbacks>, IDBTransactionBackendInterface*, ExceptionCode&) = 0;
};
}
#endif
#endif // IDBIndexBackendInterface_h