diff options
Diffstat (limited to 'WebCore/bindings/js/JSCustomSQLStatementCallback.h')
| -rw-r--r-- | WebCore/bindings/js/JSCustomSQLStatementCallback.h | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/WebCore/bindings/js/JSCustomSQLStatementCallback.h b/WebCore/bindings/js/JSCustomSQLStatementCallback.h index c380670..259aecf 100644 --- a/WebCore/bindings/js/JSCustomSQLStatementCallback.h +++ b/WebCore/bindings/js/JSCustomSQLStatementCallback.h @@ -31,32 +31,29 @@ #if ENABLE(DATABASE) +#include "JSCallbackData.h" #include "SQLStatementCallback.h" - -#include <runtime/JSObject.h> -#include <runtime/Protect.h> #include <wtf/Forward.h> -namespace JSC { - class JSObject; -} - namespace WebCore { -class Frame; class SQLResultSet; class JSCustomSQLStatementCallback : public SQLStatementCallback { public: - static PassRefPtr<JSCustomSQLStatementCallback> create(JSC::JSObject* callback, Frame* frame) { return adoptRef(new JSCustomSQLStatementCallback(callback, frame)); } + static PassRefPtr<JSCustomSQLStatementCallback> create(JSC::JSObject* callback, JSDOMGlobalObject* globalObject) + { + return adoptRef(new JSCustomSQLStatementCallback(callback, globalObject)); + } + + virtual ~JSCustomSQLStatementCallback(); virtual void handleEvent(SQLTransaction*, SQLResultSet*, bool& raisedException); private: - JSCustomSQLStatementCallback(JSC::JSObject* callback, Frame*); + JSCustomSQLStatementCallback(JSC::JSObject* callback, JSDOMGlobalObject*); - JSC::ProtectedPtr<JSC::JSObject> m_callback; - RefPtr<Frame> m_frame; + JSCallbackData* m_data; }; } |
