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 14 matching lines...) Expand all Loading... |
25 | 25 |
26 #ifndef IDBDatabase_h | 26 #ifndef IDBDatabase_h |
27 #define IDBDatabase_h | 27 #define IDBDatabase_h |
28 | 28 |
29 #include "bindings/v8/Dictionary.h" | 29 #include "bindings/v8/Dictionary.h" |
30 #include "bindings/v8/ScriptWrappable.h" | 30 #include "bindings/v8/ScriptWrappable.h" |
31 #include "core/dom/ActiveDOMObject.h" | 31 #include "core/dom/ActiveDOMObject.h" |
32 #include "core/dom/DOMStringList.h" | 32 #include "core/dom/DOMStringList.h" |
33 #include "core/events/Event.h" | 33 #include "core/events/Event.h" |
34 #include "core/events/EventTarget.h" | 34 #include "core/events/EventTarget.h" |
| 35 #include "heap/Handle.h" |
35 #include "modules/indexeddb/IDBDatabaseCallbacks.h" | 36 #include "modules/indexeddb/IDBDatabaseCallbacks.h" |
36 #include "modules/indexeddb/IDBMetadata.h" | 37 #include "modules/indexeddb/IDBMetadata.h" |
37 #include "modules/indexeddb/IDBObjectStore.h" | 38 #include "modules/indexeddb/IDBObjectStore.h" |
38 #include "modules/indexeddb/IDBTransaction.h" | 39 #include "modules/indexeddb/IDBTransaction.h" |
39 #include "modules/indexeddb/IndexedDB.h" | 40 #include "modules/indexeddb/IndexedDB.h" |
40 #include "public/platform/WebIDBDatabase.h" | 41 #include "public/platform/WebIDBDatabase.h" |
41 #include "wtf/OwnPtr.h" | 42 #include "wtf/OwnPtr.h" |
42 #include "wtf/PassOwnPtr.h" | 43 #include "wtf/PassOwnPtr.h" |
43 #include "wtf/PassRefPtr.h" | 44 #include "wtf/PassRefPtr.h" |
44 #include "wtf/RefCounted.h" | 45 #include "wtf/RefCounted.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 void deleteObjectStore(const String& name, ExceptionState&); | 77 void deleteObjectStore(const String& name, ExceptionState&); |
77 void close(); | 78 void close(); |
78 | 79 |
79 DEFINE_ATTRIBUTE_EVENT_LISTENER(abort); | 80 DEFINE_ATTRIBUTE_EVENT_LISTENER(abort); |
80 DEFINE_ATTRIBUTE_EVENT_LISTENER(close); | 81 DEFINE_ATTRIBUTE_EVENT_LISTENER(close); |
81 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); | 82 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); |
82 DEFINE_ATTRIBUTE_EVENT_LISTENER(versionchange); | 83 DEFINE_ATTRIBUTE_EVENT_LISTENER(versionchange); |
83 | 84 |
84 // IDBDatabaseCallbacks | 85 // IDBDatabaseCallbacks |
85 void onVersionChange(int64_t oldVersion, int64_t newVersion); | 86 void onVersionChange(int64_t oldVersion, int64_t newVersion); |
86 void onAbort(int64_t, PassRefPtr<DOMError>); | 87 void onAbort(int64_t, PassRefPtrWillBeRawPtr<DOMError>); |
87 void onComplete(int64_t); | 88 void onComplete(int64_t); |
88 | 89 |
89 // ActiveDOMObject | 90 // ActiveDOMObject |
90 virtual bool hasPendingActivity() const OVERRIDE; | 91 virtual bool hasPendingActivity() const OVERRIDE; |
91 virtual void stop() OVERRIDE; | 92 virtual void stop() OVERRIDE; |
92 | 93 |
93 // EventTarget | 94 // EventTarget |
94 virtual const AtomicString& interfaceName() const OVERRIDE; | 95 virtual const AtomicString& interfaceName() const OVERRIDE; |
95 virtual ExecutionContext* executionContext() const OVERRIDE; | 96 virtual ExecutionContext* executionContext() const OVERRIDE; |
96 | 97 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 // Keep track of the versionchange events waiting to be fired on this | 145 // Keep track of the versionchange events waiting to be fired on this |
145 // database so that we can cancel them if the database closes. | 146 // database so that we can cancel them if the database closes. |
146 Vector<RefPtr<Event> > m_enqueuedEvents; | 147 Vector<RefPtr<Event> > m_enqueuedEvents; |
147 | 148 |
148 RefPtr<IDBDatabaseCallbacks> m_databaseCallbacks; | 149 RefPtr<IDBDatabaseCallbacks> m_databaseCallbacks; |
149 }; | 150 }; |
150 | 151 |
151 } // namespace WebCore | 152 } // namespace WebCore |
152 | 153 |
153 #endif // IDBDatabase_h | 154 #endif // IDBDatabase_h |
OLD | NEW |