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