| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 namespace { | 62 namespace { |
| 63 | 63 |
| 64 class DeactivateTransactionTask : public V8PerIsolateData::EndOfScopeTask { | 64 class DeactivateTransactionTask : public V8PerIsolateData::EndOfScopeTask { |
| 65 public: | 65 public: |
| 66 static PassOwnPtr<DeactivateTransactionTask> create(IDBTransaction* transact
ion) | 66 static PassOwnPtr<DeactivateTransactionTask> create(IDBTransaction* transact
ion) |
| 67 { | 67 { |
| 68 return adoptPtr(new DeactivateTransactionTask(transaction)); | 68 return adoptPtr(new DeactivateTransactionTask(transaction)); |
| 69 } | 69 } |
| 70 | 70 |
| 71 void Run() override | 71 void run() override |
| 72 { | 72 { |
| 73 m_transaction->setActive(false); | 73 m_transaction->setActive(false); |
| 74 m_transaction.clear(); | 74 m_transaction.clear(); |
| 75 } | 75 } |
| 76 | 76 |
| 77 private: | 77 private: |
| 78 explicit DeactivateTransactionTask(IDBTransaction* transaction) | 78 explicit DeactivateTransactionTask(IDBTransaction* transaction) |
| 79 : m_transaction(transaction) { } | 79 : m_transaction(transaction) { } |
| 80 | 80 |
| 81 Persistent<IDBTransaction> m_transaction; | 81 Persistent<IDBTransaction> m_transaction; |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 event->setTarget(this); | 394 event->setTarget(this); |
| 395 eventQueue->enqueueEvent(event); | 395 eventQueue->enqueueEvent(event); |
| 396 } | 396 } |
| 397 | 397 |
| 398 WebIDBDatabase* IDBTransaction::backendDB() const | 398 WebIDBDatabase* IDBTransaction::backendDB() const |
| 399 { | 399 { |
| 400 return m_database->backend(); | 400 return m_database->backend(); |
| 401 } | 401 } |
| 402 | 402 |
| 403 } // namespace blink | 403 } // namespace blink |
| OLD | NEW |