| 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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 | 370 |
| 371 void IDBTransaction::registerRequest(IDBRequest* request) { | 371 void IDBTransaction::registerRequest(IDBRequest* request) { |
| 372 DCHECK(request); | 372 DCHECK(request); |
| 373 DCHECK_EQ(m_state, Active); | 373 DCHECK_EQ(m_state, Active); |
| 374 m_requestList.insert(request); | 374 m_requestList.insert(request); |
| 375 } | 375 } |
| 376 | 376 |
| 377 void IDBTransaction::unregisterRequest(IDBRequest* request) { | 377 void IDBTransaction::unregisterRequest(IDBRequest* request) { |
| 378 DCHECK(request); | 378 DCHECK(request); |
| 379 // If we aborted the request, it will already have been removed. | 379 // If we aborted the request, it will already have been removed. |
| 380 m_requestList.remove(request); | 380 m_requestList.erase(request); |
| 381 } | 381 } |
| 382 | 382 |
| 383 void IDBTransaction::onAbort(DOMException* error) { | 383 void IDBTransaction::onAbort(DOMException* error) { |
| 384 IDB_TRACE("IDBTransaction::onAbort"); | 384 IDB_TRACE("IDBTransaction::onAbort"); |
| 385 if (!getExecutionContext()) { | 385 if (!getExecutionContext()) { |
| 386 finished(); | 386 finished(); |
| 387 return; | 387 return; |
| 388 } | 388 } |
| 389 | 389 |
| 390 DCHECK_NE(m_state, Finished); | 390 DCHECK_NE(m_state, Finished); |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 IDBObjectStore* objectStore = it.key; | 595 IDBObjectStore* objectStore = it.key; |
| 596 objectStore->clearIndexCache(); | 596 objectStore->clearIndexCache(); |
| 597 } | 597 } |
| 598 m_oldStoreMetadata.clear(); | 598 m_oldStoreMetadata.clear(); |
| 599 | 599 |
| 600 m_deletedIndexes.clear(); | 600 m_deletedIndexes.clear(); |
| 601 m_deletedObjectStores.clear(); | 601 m_deletedObjectStores.clear(); |
| 602 } | 602 } |
| 603 | 603 |
| 604 } // namespace blink | 604 } // namespace blink |
| OLD | NEW |