Chromium Code Reviews| 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/v8/ScriptValue.h" | 29 #include "bindings/v8/ScriptValue.h" |
| 30 #include "bindings/v8/ScriptWrappable.h" | 30 #include "bindings/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/IDBTransaction.h" | |
|
Nico
2013/12/09 02:01:27
Isn't this needed since there's a RefPtr<IDBTransa
Inactive
2013/12/10 20:26:19
AFAIK, a forward declaration is sufficient for T d
| |
| 34 #include "modules/indexeddb/IndexedDB.h" | 33 #include "modules/indexeddb/IndexedDB.h" |
| 35 #include "public/platform/WebIDBCursor.h" | 34 #include "public/platform/WebIDBCursor.h" |
| 36 #include "wtf/PassRefPtr.h" | 35 #include "wtf/PassRefPtr.h" |
| 37 #include "wtf/RefCounted.h" | 36 #include "wtf/RefCounted.h" |
| 38 #include "wtf/RefPtr.h" | 37 #include "wtf/RefPtr.h" |
| 39 | 38 |
| 40 namespace WebCore { | 39 namespace WebCore { |
| 41 | 40 |
| 42 class DOMRequestState; | 41 class DOMRequestState; |
| 43 class ExceptionState; | 42 class ExceptionState; |
| 44 class IDBAny; | 43 class IDBAny; |
| 44 class IDBTransaction; | |
| 45 class ExecutionContext; | 45 class ExecutionContext; |
| 46 class SharedBuffer; | 46 class SharedBuffer; |
| 47 | 47 |
| 48 class IDBCursor : public ScriptWrappable, public WTF::RefCountedBase { | 48 class IDBCursor : public ScriptWrappable, public WTF::RefCountedBase { |
| 49 public: | 49 public: |
| 50 static const AtomicString& directionNext(); | 50 static const AtomicString& directionNext(); |
| 51 static const AtomicString& directionNextUnique(); | 51 static const AtomicString& directionNextUnique(); |
| 52 static const AtomicString& directionPrev(); | 52 static const AtomicString& directionPrev(); |
| 53 static const AtomicString& directionPrevUnique(); | 53 static const AtomicString& directionPrevUnique(); |
| 54 | 54 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 110 bool m_primaryKeyDirty; | 110 bool m_primaryKeyDirty; |
| 111 bool m_valueDirty; | 111 bool m_valueDirty; |
| 112 RefPtr<IDBKey> m_key; | 112 RefPtr<IDBKey> m_key; |
| 113 RefPtr<IDBKey> m_primaryKey; | 113 RefPtr<IDBKey> m_primaryKey; |
| 114 RefPtr<SharedBuffer> m_value; | 114 RefPtr<SharedBuffer> m_value; |
| 115 }; | 115 }; |
| 116 | 116 |
| 117 } // namespace WebCore | 117 } // namespace WebCore |
| 118 | 118 |
| 119 #endif // IDBCursor_h | 119 #endif // IDBCursor_h |
| OLD | NEW |