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 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef IDBCursor_h | 26 #ifndef IDBCursor_h |
27 #define IDBCursor_h | 27 #define IDBCursor_h |
28 | 28 |
29 #include "bindings/core/v8/ScriptValue.h" | 29 #include "bindings/core/v8/ScriptValue.h" |
30 #include "bindings/core/v8/ScriptWrappable.h" | 30 #include "bindings/core/v8/ScriptWrappable.h" |
31 #include "modules/indexeddb/IDBKey.h" | 31 #include "modules/indexeddb/IDBKey.h" |
32 #include "modules/indexeddb/IDBRequest.h" | 32 #include "modules/indexeddb/IDBRequest.h" |
33 #include "modules/indexeddb/IndexedDB.h" | |
34 #include "public/platform/WebIDBCursor.h" | 33 #include "public/platform/WebIDBCursor.h" |
35 #include "public/platform/WebIDBTypes.h" | |
36 #include "wtf/PassRefPtr.h" | 34 #include "wtf/PassRefPtr.h" |
37 #include "wtf/RefPtr.h" | 35 #include "wtf/RefPtr.h" |
38 | 36 |
39 namespace blink { | 37 namespace blink { |
40 | 38 |
41 class ExceptionState; | 39 class ExceptionState; |
42 class IDBAny; | 40 class IDBAny; |
43 class IDBTransaction; | 41 class IDBTransaction; |
44 class ExecutionContext; | |
45 class SharedBuffer; | 42 class SharedBuffer; |
46 class WebBlobInfo; | 43 class WebBlobInfo; |
47 | 44 |
48 class IDBCursor : public GarbageCollectedFinalized<IDBCursor>, public ScriptWrap
pable { | 45 class IDBCursor : public GarbageCollectedFinalized<IDBCursor>, public ScriptWrap
pable { |
49 DEFINE_WRAPPERTYPEINFO(); | 46 DEFINE_WRAPPERTYPEINFO(); |
50 USING_PRE_FINALIZER(IDBCursor, dispose); | 47 USING_PRE_FINALIZER(IDBCursor, dispose); |
51 public: | 48 public: |
52 static WebIDBCursorDirection stringToDirection(const String& modeString, Exc
eptionState&); | 49 static WebIDBCursorDirection stringToDirection(const String& modeString, Exc
eptionState&); |
53 | 50 |
54 static IDBCursor* create(PassOwnPtr<WebIDBCursor>, WebIDBCursorDirection, ID
BRequest*, IDBAny* source, IDBTransaction*); | 51 static IDBCursor* create(PassOwnPtr<WebIDBCursor>, WebIDBCursorDirection, ID
BRequest*, IDBAny* source, IDBTransaction*); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 bool m_valueDirty; | 99 bool m_valueDirty; |
103 Member<IDBKey> m_key; | 100 Member<IDBKey> m_key; |
104 Member<IDBKey> m_primaryKey; | 101 Member<IDBKey> m_primaryKey; |
105 RefPtr<SharedBuffer> m_value; | 102 RefPtr<SharedBuffer> m_value; |
106 OwnPtr<Vector<WebBlobInfo> > m_blobInfo; | 103 OwnPtr<Vector<WebBlobInfo> > m_blobInfo; |
107 }; | 104 }; |
108 | 105 |
109 } // namespace blink | 106 } // namespace blink |
110 | 107 |
111 #endif // IDBCursor_h | 108 #endif // IDBCursor_h |
OLD | NEW |