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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 // New state is not applied to the cursor object until the event is | 184 // New state is not applied to the cursor object until the event is |
185 // dispatched. | 185 // dispatched. |
186 Member<IDBKey> m_cursorKey; | 186 Member<IDBKey> m_cursorKey; |
187 Member<IDBKey> m_cursorPrimaryKey; | 187 Member<IDBKey> m_cursorPrimaryKey; |
188 RefPtr<IDBValue> m_cursorValue; | 188 RefPtr<IDBValue> m_cursorValue; |
189 | 189 |
190 bool m_didFireUpgradeNeededEvent = false; | 190 bool m_didFireUpgradeNeededEvent = false; |
191 bool m_preventPropagation = false; | 191 bool m_preventPropagation = false; |
192 bool m_resultDirty = true; | 192 bool m_resultDirty = true; |
193 | 193 |
| 194 // Transactions should be aborted after event dispatch if an exception was |
| 195 // not caught. This is cleared before dispatch, set by a call to |
| 196 // uncaughtExceptionInEventHandler() during dispatch, and checked afterwards |
| 197 // to abort if necessary. |
| 198 bool m_didThrowInEventHandler = false; |
| 199 |
194 // Pointer back to the WebIDBCallbacks that holds a persistent reference to | 200 // Pointer back to the WebIDBCallbacks that holds a persistent reference to |
195 // this object. | 201 // this object. |
196 WebIDBCallbacks* m_webCallbacks = nullptr; | 202 WebIDBCallbacks* m_webCallbacks = nullptr; |
197 }; | 203 }; |
198 | 204 |
199 } // namespace blink | 205 } // namespace blink |
200 | 206 |
201 #endif // IDBRequest_h | 207 #endif // IDBRequest_h |
OLD | NEW |