Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp

Issue 2725063003: Migrate WTF::LinkedHashSet/ListHashSet/HashTable::remove() to ::erase() (Closed)
Patch Set: rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/canvas2d/HitRegion.cpp ('k') | third_party/WebKit/Source/platform/fonts/FontDataCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698