WebIDBObjectStore.h [plain text]
#ifndef WebIDBObjectStore_h
#define WebIDBObjectStore_h
#include "WebCommon.h"
#include "WebExceptionCode.h"
#include "WebDOMStringList.h"
#include "WebIDBCallbacks.h"
#include "WebIDBTransaction.h"
#include "WebString.h"
namespace WebKit {
class WebIDBKeyRange;
class WebIDBTransaction;
class WebIDBObjectStore {
public:
virtual ~WebIDBObjectStore() { }
virtual WebString name() const
{
WEBKIT_ASSERT_NOT_REACHED();
return WebString();
}
virtual WebString keyPath() const
{
WEBKIT_ASSERT_NOT_REACHED();
return WebString();
}
virtual WebDOMStringList indexNames() const
{
WEBKIT_ASSERT_NOT_REACHED();
return WebDOMStringList();
}
virtual void get(const WebIDBKey&, WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); }
enum PutMode {
AddOrUpdate,
AddOnly,
CursorUpdate
};
virtual void put(const WebSerializedScriptValue&, const WebIDBKey&, PutMode, WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); }
virtual void deleteFunction(const WebIDBKey&, WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); }
virtual void clear(WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); }
virtual WebIDBIndex* createIndex(const WebString& name, const WebString& keyPath, bool unique, const WebIDBTransaction&, WebExceptionCode&)
{
WEBKIT_ASSERT_NOT_REACHED();
return 0;
}
virtual WebIDBIndex* index(const WebString& name, WebExceptionCode&)
{
WEBKIT_ASSERT_NOT_REACHED();
return 0;
}
virtual void deleteIndex(const WebString& name, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); }
virtual void openCursor(const WebIDBKeyRange&, unsigned short direction, WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); }
protected:
WebIDBObjectStore() {}
};
}
#endif // WebIDBObjectStore_h