summaryrefslogtreecommitdiffstats
path: root/WebCore/storage/IndexedDatabaseRequest.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/storage/IndexedDatabaseRequest.h')
-rw-r--r--WebCore/storage/IndexedDatabaseRequest.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/WebCore/storage/IndexedDatabaseRequest.h b/WebCore/storage/IndexedDatabaseRequest.h
index 74aada3..83235b6 100644
--- a/WebCore/storage/IndexedDatabaseRequest.h
+++ b/WebCore/storage/IndexedDatabaseRequest.h
@@ -29,6 +29,7 @@
#define IndexedDatabaseRequest_h
#include "ExceptionCode.h"
+#include "IndexedDatabase.h"
#include "PlatformString.h"
#include <wtf/PassRefPtr.h>
#include <wtf/RefCounted.h>
@@ -38,23 +39,26 @@
namespace WebCore {
-class IDBRequest;
+class IndexedDatabase;
+class Frame;
class IndexedDatabaseRequest : public RefCounted<IndexedDatabaseRequest> {
public:
- static PassRefPtr<IndexedDatabaseRequest> create()
+ static PassRefPtr<IndexedDatabaseRequest> create(IndexedDatabase* indexedDatabase, Frame* frame)
{
- return adoptRef(new IndexedDatabaseRequest());
+ return adoptRef(new IndexedDatabaseRequest(indexedDatabase, frame));
}
~IndexedDatabaseRequest();
- IDBRequest* request() const { return m_request.get(); }
- void open(const String& name, const String& description, bool modifyDatabase, ExceptionCode&);
+ void open(const String& name, const String& description, bool modifyDatabase, PassRefPtr<IDBDatabaseCallbacks>, ExceptionCode&);
+
+ void disconnectFrame() { m_frame = 0; }
private:
- IndexedDatabaseRequest();
+ IndexedDatabaseRequest(IndexedDatabase*, Frame*);
- PassRefPtr<IDBRequest> m_request;
+ PassRefPtr<IndexedDatabase> m_indexedDatabase;
+ Frame* m_frame;
};
} // namespace WebCore