~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to src/3rdparty/webkit/WebCore/bindings/js/JSCustomSQLStatementCallback.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-11-02 18:30:08 UTC
  • mfrom: (1.2.2 upstream)
  • mto: (15.2.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 88.
  • Revision ID: james.westby@ubuntu.com-20091102183008-b6a4gcs128mvfb3m
Tags: upstream-4.6.0~beta1
ImportĀ upstreamĀ versionĀ 4.6.0~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
#ifndef JSCustomSQLStatementCallback_h
30
30
#define JSCustomSQLStatementCallback_h
31
31
 
 
32
#if ENABLE(DATABASE)
 
33
 
 
34
#include "JSDOMGlobalObject.h"
32
35
#include "SQLStatementCallback.h"
33
 
 
34
 
#include <runtime/JSObject.h>
35
36
#include <runtime/Protect.h>
36
37
#include <wtf/Forward.h>
37
38
 
38
 
namespace JSC {
39
 
    class JSObject;
40
 
}
41
 
 
42
39
namespace WebCore {
43
40
 
44
 
class Frame;
45
41
class SQLResultSet;
46
42
 
47
43
class JSCustomSQLStatementCallback : public SQLStatementCallback {
48
44
public:
49
 
    static PassRefPtr<JSCustomSQLStatementCallback> create(JSC::JSObject* callback, Frame* frame) { return adoptRef(new JSCustomSQLStatementCallback(callback, frame)); }
 
45
    static PassRefPtr<JSCustomSQLStatementCallback> create(JSC::JSObject* callback, JSDOMGlobalObject* globalObject)
 
46
    {
 
47
        return adoptRef(new JSCustomSQLStatementCallback(callback, globalObject));
 
48
    }
50
49
 
51
50
    virtual void handleEvent(SQLTransaction*, SQLResultSet*, bool& raisedException);
52
51
 
53
52
private:
54
 
    JSCustomSQLStatementCallback(JSC::JSObject* callback, Frame*);
 
53
    JSCustomSQLStatementCallback(JSC::JSObject* callback, JSDOMGlobalObject*);
55
54
 
56
55
    JSC::ProtectedPtr<JSC::JSObject> m_callback;
57
 
    RefPtr<Frame> m_frame;
 
56
    JSC::ProtectedPtr<JSDOMGlobalObject> m_globalObject;
58
57
};
59
58
 
60
59
}
61
60
 
 
61
#endif // ENABLE(DATABASE)
 
62
 
62
63
#endif // JSCustomSQLStatementCallback_h