summaryrefslogtreecommitdiffstats
path: root/WebCore/bindings/js/JSCustomSQLStatementCallback.h
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:15 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:15 -0800
commit1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353 (patch)
tree4457a7306ea5acb43fe05bfe0973b1f7faf97ba2 /WebCore/bindings/js/JSCustomSQLStatementCallback.h
parent9364f22aed35e1a1e9d07c121510f80be3ab0502 (diff)
downloadexternal_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.zip
external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.gz
external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.bz2
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'WebCore/bindings/js/JSCustomSQLStatementCallback.h')
-rw-r--r--WebCore/bindings/js/JSCustomSQLStatementCallback.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/WebCore/bindings/js/JSCustomSQLStatementCallback.h b/WebCore/bindings/js/JSCustomSQLStatementCallback.h
index 27bca7b..d4fd6ec 100644
--- a/WebCore/bindings/js/JSCustomSQLStatementCallback.h
+++ b/WebCore/bindings/js/JSCustomSQLStatementCallback.h
@@ -31,11 +31,11 @@
#include "SQLStatementCallback.h"
-#include <kjs/object.h>
+#include <runtime/JSObject.h>
#include <kjs/protect.h>
#include <wtf/Forward.h>
-namespace KJS {
+namespace JSC {
class JSObject;
}
@@ -46,11 +46,14 @@ class SQLResultSet;
class JSCustomSQLStatementCallback : public SQLStatementCallback {
public:
- JSCustomSQLStatementCallback(KJS::JSObject* callback, Frame*);
-
+ static PassRefPtr<JSCustomSQLStatementCallback> create(JSC::JSObject* callback, Frame* frame) { return adoptRef(new JSCustomSQLStatementCallback(callback, frame)); }
+
virtual void handleEvent(SQLTransaction*, SQLResultSet*, bool& raisedException);
+
private:
- KJS::ProtectedPtr<KJS::JSObject> m_callback;
+ JSCustomSQLStatementCallback(JSC::JSObject* callback, Frame*);
+
+ JSC::ProtectedPtr<JSC::JSObject> m_callback;
RefPtr<Frame> m_frame;
};