OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 12 matching lines...) Expand all Loading... |
23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 */ | 27 */ |
28 | 28 |
29 #ifndef IDBRequest_h | 29 #ifndef IDBRequest_h |
30 #define IDBRequest_h | 30 #define IDBRequest_h |
31 | 31 |
32 #include "bindings/v8/DOMRequestState.h" | 32 #include "bindings/v8/DOMRequestState.h" |
| 33 #include "bindings/v8/ScriptValue.h" |
33 #include "bindings/v8/ScriptWrappable.h" | 34 #include "bindings/v8/ScriptWrappable.h" |
34 #include "core/dom/ActiveDOMObject.h" | 35 #include "core/dom/ActiveDOMObject.h" |
35 #include "core/dom/DOMError.h" | 36 #include "core/dom/DOMError.h" |
36 #include "core/dom/DOMStringList.h" | 37 #include "core/dom/DOMStringList.h" |
37 #include "core/events/Event.h" | 38 #include "core/events/Event.h" |
38 #include "core/events/EventListener.h" | 39 #include "core/events/EventListener.h" |
39 #include "core/events/EventTarget.h" | 40 #include "core/events/EventTarget.h" |
40 #include "core/events/ThreadLocalEventNames.h" | 41 #include "core/events/ThreadLocalEventNames.h" |
41 #include "heap/Handle.h" | 42 #include "heap/Handle.h" |
42 #include "modules/indexeddb/IDBAny.h" | 43 #include "modules/indexeddb/IDBAny.h" |
43 #include "modules/indexeddb/IDBCursor.h" | |
44 #include "modules/indexeddb/IDBTransaction.h" | 44 #include "modules/indexeddb/IDBTransaction.h" |
45 #include "modules/indexeddb/IndexedDB.h" | 45 #include "modules/indexeddb/IndexedDB.h" |
46 #include "public/platform/WebIDBCursor.h" | 46 #include "public/platform/WebIDBCursor.h" |
47 | 47 |
48 namespace WebCore { | 48 namespace WebCore { |
49 | 49 |
50 class ExceptionState; | 50 class ExceptionState; |
| 51 class IDBCursor; |
51 struct IDBDatabaseMetadata; | 52 struct IDBDatabaseMetadata; |
52 class SharedBuffer; | 53 class SharedBuffer; |
53 | 54 |
54 // Base class to simplify usage of event target refcounting. | 55 // Base class to simplify usage of event target refcounting. |
55 class IDBRequestBase : public WTF::RefCountedBase { | 56 class IDBRequestBase : public WTF::RefCountedBase { |
56 public: | 57 public: |
57 virtual void deref() = 0; | 58 virtual void deref() = 0; |
58 | 59 |
59 protected: | 60 protected: |
60 virtual ~IDBRequestBase() { } | 61 virtual ~IDBRequestBase() { } |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 bool m_didFireUpgradeNeededEvent; | 176 bool m_didFireUpgradeNeededEvent; |
176 bool m_preventPropagation; | 177 bool m_preventPropagation; |
177 bool m_resultDirty; | 178 bool m_resultDirty; |
178 | 179 |
179 DOMRequestState m_requestState; | 180 DOMRequestState m_requestState; |
180 }; | 181 }; |
181 | 182 |
182 } // namespace WebCore | 183 } // namespace WebCore |
183 | 184 |
184 #endif // IDBRequest_h | 185 #endif // IDBRequest_h |
OLD | NEW |