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 11 matching lines...) Expand all Loading... |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #include "config.h" | 26 #include "config.h" |
27 #include "modules/indexeddb/IDBPendingTransactionMonitor.h" | 27 #include "modules/indexeddb/IDBPendingTransactionMonitor.h" |
28 | 28 |
29 #include "core/dom/ExecutionContext.h" | 29 #include "core/dom/ExecutionContext.h" |
30 #include "modules/indexeddb/IDBTransaction.h" | 30 #include "modules/indexeddb/IDBTransaction.h" |
31 | 31 |
32 namespace WebCore { | 32 namespace blink { |
33 | 33 |
34 const char* IDBPendingTransactionMonitor::supplementName() | 34 const char* IDBPendingTransactionMonitor::supplementName() |
35 { | 35 { |
36 return "IDBPendingTransactionMonitor"; | 36 return "IDBPendingTransactionMonitor"; |
37 } | 37 } |
38 | 38 |
39 inline IDBPendingTransactionMonitor::IDBPendingTransactionMonitor() | 39 inline IDBPendingTransactionMonitor::IDBPendingTransactionMonitor() |
40 { | 40 { |
41 } | 41 } |
42 | 42 |
(...skipping 18 matching lines...) Expand all Loading... |
61 | 61 |
62 void IDBPendingTransactionMonitor::deactivateNewTransactions() | 62 void IDBPendingTransactionMonitor::deactivateNewTransactions() |
63 { | 63 { |
64 for (size_t i = 0; i < m_transactions.size(); ++i) | 64 for (size_t i = 0; i < m_transactions.size(); ++i) |
65 m_transactions[i]->setActive(false); | 65 m_transactions[i]->setActive(false); |
66 // FIXME: Exercise this call to clear() in a layout test. | 66 // FIXME: Exercise this call to clear() in a layout test. |
67 m_transactions.clear(); | 67 m_transactions.clear(); |
68 } | 68 } |
69 | 69 |
70 }; | 70 }; |
OLD | NEW |