| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 | 112 |
| 113 void enqueueEvent(PassRefPtrWillBeRawPtr<Event>); | 113 void enqueueEvent(PassRefPtrWillBeRawPtr<Event>); |
| 114 | 114 |
| 115 enum State { | 115 enum State { |
| 116 Inactive, // Created or started, but not in an event callback | 116 Inactive, // Created or started, but not in an event callback |
| 117 Active, // Created or started, in creation scope or an event callback | 117 Active, // Created or started, in creation scope or an event callback |
| 118 Finishing, // In the process of aborting or completing. | 118 Finishing, // In the process of aborting or completing. |
| 119 Finished, // No more events will fire and no new requests may be filed. | 119 Finished, // No more events will fire and no new requests may be filed. |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 int64_t m_id; | 122 const int64_t m_id; |
| 123 Member<IDBDatabase> m_database; | 123 Member<IDBDatabase> m_database; |
| 124 const HashSet<String> m_objectStoreNames; | 124 const HashSet<String> m_objectStoreNames; |
| 125 Member<IDBOpenDBRequest> m_openDBRequest; | 125 Member<IDBOpenDBRequest> m_openDBRequest; |
| 126 const WebIDBTransactionMode m_mode; | 126 const WebIDBTransactionMode m_mode; |
| 127 State m_state; | 127 State m_state = Active; |
| 128 bool m_hasPendingActivity; | 128 bool m_hasPendingActivity = true; |
| 129 bool m_contextStopped; | 129 bool m_contextStopped = false; |
| 130 Member<DOMError> m_error; | 130 Member<DOMError> m_error; |
| 131 | 131 |
| 132 HeapListHashSet<Member<IDBRequest>> m_requestList; | 132 HeapListHashSet<Member<IDBRequest>> m_requestList; |
| 133 | 133 |
| 134 typedef HeapHashMap<String, Member<IDBObjectStore>> IDBObjectStoreMap; | 134 typedef HeapHashMap<String, Member<IDBObjectStore>> IDBObjectStoreMap; |
| 135 IDBObjectStoreMap m_objectStoreMap; | 135 IDBObjectStoreMap m_objectStoreMap; |
| 136 | 136 |
| 137 typedef HeapHashSet<Member<IDBObjectStore>> IDBObjectStoreSet; | 137 HeapHashSet<Member<IDBObjectStore>> m_deletedObjectStores; |
| 138 IDBObjectStoreSet m_deletedObjectStores; | 138 HeapHashMap<Member<IDBObjectStore>, IDBObjectStoreMetadata> m_objectStoreCle
anupMap; |
| 139 | |
| 140 typedef HeapHashMap<Member<IDBObjectStore>, IDBObjectStoreMetadata> IDBObjec
tStoreMetadataMap; | |
| 141 IDBObjectStoreMetadataMap m_objectStoreCleanupMap; | |
| 142 IDBDatabaseMetadata m_previousMetadata; | 139 IDBDatabaseMetadata m_previousMetadata; |
| 143 }; | 140 }; |
| 144 | 141 |
| 145 } // namespace blink | 142 } // namespace blink |
| 146 | 143 |
| 147 #endif // IDBTransaction_h | 144 #endif // IDBTransaction_h |
| OLD | NEW |