OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 #include "config.h" | 26 #include "config.h" |
27 #include "modules/indexeddb/IDBDatabaseCallbacksImpl.h" | 27 #include "modules/indexeddb/IDBDatabaseCallbacksImpl.h" |
28 | 28 |
29 #include "modules/indexeddb/IDBDatabase.h" | 29 #include "modules/indexeddb/IDBDatabase.h" |
30 | 30 |
31 namespace WebCore { | 31 namespace WebCore { |
32 | 32 |
33 PassRefPtr<IDBDatabaseCallbacksImpl> IDBDatabaseCallbacksImpl::create() | 33 DEFINE_GC_INFO(IDBDatabaseCallbacks); |
| 34 |
| 35 IDBDatabaseCallbacksImpl* IDBDatabaseCallbacksImpl::create() |
34 { | 36 { |
35 return adoptRef(new IDBDatabaseCallbacksImpl()); | 37 return new IDBDatabaseCallbacksImpl(); |
36 } | 38 } |
37 | 39 |
38 IDBDatabaseCallbacksImpl::IDBDatabaseCallbacksImpl() | 40 IDBDatabaseCallbacksImpl::IDBDatabaseCallbacksImpl() |
39 : m_database(0) | 41 : m_database(0) |
40 { | 42 { |
41 } | 43 } |
42 | 44 |
43 IDBDatabaseCallbacksImpl::~IDBDatabaseCallbacksImpl() | 45 IDBDatabaseCallbacksImpl::~IDBDatabaseCallbacksImpl() |
44 { | 46 { |
45 } | 47 } |
(...skipping 22 matching lines...) Expand all Loading... |
68 if (m_database) | 70 if (m_database) |
69 m_database->onAbort(transactionId, error); | 71 m_database->onAbort(transactionId, error); |
70 } | 72 } |
71 | 73 |
72 void IDBDatabaseCallbacksImpl::onComplete(int64_t transactionId) | 74 void IDBDatabaseCallbacksImpl::onComplete(int64_t transactionId) |
73 { | 75 { |
74 if (m_database) | 76 if (m_database) |
75 m_database->onComplete(transactionId); | 77 m_database->onComplete(transactionId); |
76 } | 78 } |
77 | 79 |
| 80 void IDBDatabaseCallbacksImpl::trace(Visitor*) |
| 81 { |
| 82 } |
| 83 |
78 } // namespace WebCore | 84 } // namespace WebCore |
OLD | NEW |