| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 // EventTarget | 97 // EventTarget |
| 98 const AtomicString& interfaceName() const override; | 98 const AtomicString& interfaceName() const override; |
| 99 ExecutionContext* executionContext() const override; | 99 ExecutionContext* executionContext() const override; |
| 100 | 100 |
| 101 // ActiveDOMObject | 101 // ActiveDOMObject |
| 102 bool hasPendingActivity() const override; | 102 bool hasPendingActivity() const override; |
| 103 void stop() override; | 103 void stop() override; |
| 104 | 104 |
| 105 protected: | 105 protected: |
| 106 // EventTarget | 106 // EventTarget |
| 107 bool dispatchEventInternal(PassRefPtrWillBeRawPtr<Event>) override; | 107 DispatchEventResult dispatchEventInternal(PassRefPtrWillBeRawPtr<Event>) ove
rride; |
| 108 | 108 |
| 109 private: | 109 private: |
| 110 IDBTransaction(ScriptState*, int64_t, const HashSet<String>&, WebIDBTransact
ionMode, IDBDatabase*, IDBOpenDBRequest*, const IDBDatabaseMetadata&); | 110 IDBTransaction(ScriptState*, int64_t, const HashSet<String>&, WebIDBTransact
ionMode, IDBDatabase*, IDBOpenDBRequest*, const IDBDatabaseMetadata&); |
| 111 | 111 |
| 112 void enqueueEvent(PassRefPtrWillBeRawPtr<Event>); | 112 void enqueueEvent(PassRefPtrWillBeRawPtr<Event>); |
| 113 | 113 |
| 114 enum State { | 114 enum State { |
| 115 Inactive, // Created or started, but not in an event callback | 115 Inactive, // Created or started, but not in an event callback |
| 116 Active, // Created or started, in creation scope or an event callback | 116 Active, // Created or started, in creation scope or an event callback |
| 117 Finishing, // In the process of aborting or completing. | 117 Finishing, // In the process of aborting or completing. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 134 IDBObjectStoreMap m_objectStoreMap; | 134 IDBObjectStoreMap m_objectStoreMap; |
| 135 | 135 |
| 136 HeapHashSet<Member<IDBObjectStore>> m_deletedObjectStores; | 136 HeapHashSet<Member<IDBObjectStore>> m_deletedObjectStores; |
| 137 HeapHashMap<Member<IDBObjectStore>, IDBObjectStoreMetadata> m_objectStoreCle
anupMap; | 137 HeapHashMap<Member<IDBObjectStore>, IDBObjectStoreMetadata> m_objectStoreCle
anupMap; |
| 138 IDBDatabaseMetadata m_previousMetadata; | 138 IDBDatabaseMetadata m_previousMetadata; |
| 139 }; | 139 }; |
| 140 | 140 |
| 141 } // namespace blink | 141 } // namespace blink |
| 142 | 142 |
| 143 #endif // IDBTransaction_h | 143 #endif // IDBTransaction_h |
| OLD | NEW |