| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 136 |
| 137 private: | 137 private: |
| 138 IDBDatabase(ExecutionContext*, PassOwnPtr<WebIDBDatabase>, IDBDatabaseCallba
cks*); | 138 IDBDatabase(ExecutionContext*, PassOwnPtr<WebIDBDatabase>, IDBDatabaseCallba
cks*); |
| 139 | 139 |
| 140 IDBObjectStore* createObjectStore(const String& name, const IDBKeyPath&, boo
l autoIncrement, ExceptionState&); | 140 IDBObjectStore* createObjectStore(const String& name, const IDBKeyPath&, boo
l autoIncrement, ExceptionState&); |
| 141 void closeConnection(); | 141 void closeConnection(); |
| 142 | 142 |
| 143 IDBDatabaseMetadata m_metadata; | 143 IDBDatabaseMetadata m_metadata; |
| 144 OwnPtr<WebIDBDatabase> m_backend; | 144 OwnPtr<WebIDBDatabase> m_backend; |
| 145 Member<IDBTransaction> m_versionChangeTransaction; | 145 Member<IDBTransaction> m_versionChangeTransaction; |
| 146 typedef HeapHashMap<int64_t, Member<IDBTransaction> > TransactionMap; | 146 typedef HeapHashMap<int64_t, Member<IDBTransaction>> TransactionMap; |
| 147 TransactionMap m_transactions; | 147 TransactionMap m_transactions; |
| 148 | 148 |
| 149 bool m_closePending; | 149 bool m_closePending; |
| 150 bool m_contextStopped; | 150 bool m_contextStopped; |
| 151 | 151 |
| 152 // Keep track of the versionchange events waiting to be fired on this | 152 // Keep track of the versionchange events waiting to be fired on this |
| 153 // database so that we can cancel them if the database closes. | 153 // database so that we can cancel them if the database closes. |
| 154 WillBeHeapVector<RefPtrWillBeMember<Event> > m_enqueuedEvents; | 154 WillBeHeapVector<RefPtrWillBeMember<Event>> m_enqueuedEvents; |
| 155 | 155 |
| 156 Member<IDBDatabaseCallbacks> m_databaseCallbacks; | 156 Member<IDBDatabaseCallbacks> m_databaseCallbacks; |
| 157 }; | 157 }; |
| 158 | 158 |
| 159 } // namespace blink | 159 } // namespace blink |
| 160 | 160 |
| 161 #endif // IDBDatabase_h | 161 #endif // IDBDatabase_h |
| OLD | NEW |