| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 transaction->suspendIfNeeded(); | 73 transaction->suspendIfNeeded(); |
| 74 return transaction; | 74 return transaction; |
| 75 } | 75 } |
| 76 | 76 |
| 77 namespace { | 77 namespace { |
| 78 | 78 |
| 79 class DeactivateTransactionTask : public V8PerIsolateData::EndOfScopeTask { | 79 class DeactivateTransactionTask : public V8PerIsolateData::EndOfScopeTask { |
| 80 public: | 80 public: |
| 81 static std::unique_ptr<DeactivateTransactionTask> create( | 81 static std::unique_ptr<DeactivateTransactionTask> create( |
| 82 IDBTransaction* transaction) { | 82 IDBTransaction* transaction) { |
| 83 return wrapUnique(new DeactivateTransactionTask(transaction)); | 83 return WTF::wrapUnique(new DeactivateTransactionTask(transaction)); |
| 84 } | 84 } |
| 85 | 85 |
| 86 void run() override { | 86 void run() override { |
| 87 m_transaction->setActive(false); | 87 m_transaction->setActive(false); |
| 88 m_transaction.clear(); | 88 m_transaction.clear(); |
| 89 } | 89 } |
| 90 | 90 |
| 91 private: | 91 private: |
| 92 explicit DeactivateTransactionTask(IDBTransaction* transaction) | 92 explicit DeactivateTransactionTask(IDBTransaction* transaction) |
| 93 : m_transaction(transaction) {} | 93 : m_transaction(transaction) {} |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 IDBObjectStore* objectStore = it.key; | 575 IDBObjectStore* objectStore = it.key; |
| 576 objectStore->clearIndexCache(); | 576 objectStore->clearIndexCache(); |
| 577 } | 577 } |
| 578 m_oldStoreMetadata.clear(); | 578 m_oldStoreMetadata.clear(); |
| 579 | 579 |
| 580 m_deletedIndexes.clear(); | 580 m_deletedIndexes.clear(); |
| 581 m_deletedObjectStores.clear(); | 581 m_deletedObjectStores.clear(); |
| 582 } | 582 } |
| 583 | 583 |
| 584 } // namespace blink | 584 } // namespace blink |
| OLD | NEW |