IDBIndexBackendProxy.h [plain text]
#ifndef IDBIndexBackendProxy_h
#define IDBIndexBackendProxy_h
#if ENABLE(INDEXED_DATABASE)
#include "IDBIndexBackendInterface.h"
#include <wtf/OwnPtr.h>
#include <wtf/PassOwnPtr.h>
namespace WebKit {
class WebIDBIndex;
class IDBIndexBackendProxy : public WebCore::IDBIndexBackendInterface {
public:
static PassRefPtr<IDBIndexBackendInterface> create(PassOwnPtr<WebIDBIndex>);
virtual ~IDBIndexBackendProxy();
virtual String name();
virtual String storeName();
virtual String keyPath();
virtual bool unique();
virtual bool multiEntry();
virtual void openCursor(PassRefPtr<WebCore::IDBKeyRange>, unsigned short direction, PassRefPtr<WebCore::IDBCallbacks>, WebCore::IDBTransactionBackendInterface*, WebCore::ExceptionCode&);
virtual void openKeyCursor(PassRefPtr<WebCore::IDBKeyRange>, unsigned short direction, PassRefPtr<WebCore::IDBCallbacks>, WebCore::IDBTransactionBackendInterface*, WebCore::ExceptionCode&);
virtual void count(PassRefPtr<WebCore::IDBKeyRange>, PassRefPtr<WebCore::IDBCallbacks>, WebCore::IDBTransactionBackendInterface*, WebCore::ExceptionCode&);
virtual void get(PassRefPtr<WebCore::IDBKeyRange>, PassRefPtr<WebCore::IDBCallbacks>, WebCore::IDBTransactionBackendInterface*, WebCore::ExceptionCode&);
virtual void getKey(PassRefPtr<WebCore::IDBKeyRange>, PassRefPtr<WebCore::IDBCallbacks>, WebCore::IDBTransactionBackendInterface*, WebCore::ExceptionCode&);
private:
IDBIndexBackendProxy(PassOwnPtr<WebIDBIndex>);
OwnPtr<WebIDBIndex> m_webIDBIndex;
};
}
#endif
#endif // IDBIndexBackendProxy_h