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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 bool autoIncrement, | 168 bool autoIncrement, |
169 ExceptionState&); | 169 ExceptionState&); |
170 void closeConnection(); | 170 void closeConnection(); |
171 | 171 |
172 IDBDatabaseMetadata m_metadata; | 172 IDBDatabaseMetadata m_metadata; |
173 std::unique_ptr<WebIDBDatabase> m_backend; | 173 std::unique_ptr<WebIDBDatabase> m_backend; |
174 Member<IDBTransaction> m_versionChangeTransaction; | 174 Member<IDBTransaction> m_versionChangeTransaction; |
175 HeapHashMap<int64_t, Member<IDBTransaction>> m_transactions; | 175 HeapHashMap<int64_t, Member<IDBTransaction>> m_transactions; |
176 | 176 |
177 bool m_closePending = false; | 177 bool m_closePending = false; |
178 bool m_contextStopped = false; | |
179 | 178 |
180 // Keep track of the versionchange events waiting to be fired on this | 179 // Keep track of the versionchange events waiting to be fired on this |
181 // database so that we can cancel them if the database closes. | 180 // database so that we can cancel them if the database closes. |
182 HeapVector<Member<Event>> m_enqueuedEvents; | 181 HeapVector<Member<Event>> m_enqueuedEvents; |
183 | 182 |
184 Member<IDBDatabaseCallbacks> m_databaseCallbacks; | 183 Member<IDBDatabaseCallbacks> m_databaseCallbacks; |
185 }; | 184 }; |
186 | 185 |
187 } // namespace blink | 186 } // namespace blink |
188 | 187 |
189 #endif // IDBDatabase_h | 188 #endif // IDBDatabase_h |
OLD | NEW |