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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 // FIXME: Try to construct a test where |this| outlives openDBRequest and we | 409 // FIXME: Try to construct a test where |this| outlives openDBRequest and we |
410 // get a crash. | 410 // get a crash. |
411 if (m_openDBRequest) { | 411 if (m_openDBRequest) { |
412 DCHECK(isVersionChange()); | 412 DCHECK(isVersionChange()); |
413 m_openDBRequest->transactionDidFinishAndDispatch(); | 413 m_openDBRequest->transactionDidFinishAndDispatch(); |
414 } | 414 } |
415 m_hasPendingActivity = false; | 415 m_hasPendingActivity = false; |
416 return dispatchResult; | 416 return dispatchResult; |
417 } | 417 } |
418 | 418 |
419 void IDBTransaction::stop() { | 419 void IDBTransaction::contextDestroyed() { |
420 if (m_contextStopped) | 420 if (m_contextStopped) |
421 return; | 421 return; |
422 | 422 |
423 m_contextStopped = true; | 423 m_contextStopped = true; |
424 | 424 |
425 abort(IGNORE_EXCEPTION); | 425 abort(IGNORE_EXCEPTION); |
426 } | 426 } |
427 | 427 |
428 void IDBTransaction::enqueueEvent(Event* event) { | 428 void IDBTransaction::enqueueEvent(Event* event) { |
429 DCHECK_NE(m_state, Finished) | 429 DCHECK_NE(m_state, Finished) |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 m_objectStoreMap.clear(); | 478 m_objectStoreMap.clear(); |
479 for (auto& it : m_deletedObjectStores) | 479 for (auto& it : m_deletedObjectStores) |
480 it->transactionFinished(); | 480 it->transactionFinished(); |
481 m_createdObjectStores.clear(); | 481 m_createdObjectStores.clear(); |
482 m_deletedObjectStores.clear(); | 482 m_deletedObjectStores.clear(); |
483 | 483 |
484 m_objectStoreCleanupMap.clear(); | 484 m_objectStoreCleanupMap.clear(); |
485 } | 485 } |
486 | 486 |
487 } // namespace blink | 487 } // namespace blink |
OLD | NEW |