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

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

Issue 864533002: Fix template angle bracket syntax in modules (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 m_state = Finished; 351 m_state = Finished;
352 352
353 // Break reference cycles. 353 // Break reference cycles.
354 for (IDBObjectStoreMap::iterator it = m_objectStoreMap.begin(); it != m_obje ctStoreMap.end(); ++it) 354 for (IDBObjectStoreMap::iterator it = m_objectStoreMap.begin(); it != m_obje ctStoreMap.end(); ++it)
355 it->value->transactionFinished(); 355 it->value->transactionFinished();
356 m_objectStoreMap.clear(); 356 m_objectStoreMap.clear();
357 for (IDBObjectStoreSet::iterator it = m_deletedObjectStores.begin(); it != m _deletedObjectStores.end(); ++it) 357 for (IDBObjectStoreSet::iterator it = m_deletedObjectStores.begin(); it != m _deletedObjectStores.end(); ++it)
358 (*it)->transactionFinished(); 358 (*it)->transactionFinished();
359 m_deletedObjectStores.clear(); 359 m_deletedObjectStores.clear();
360 360
361 WillBeHeapVector<RefPtrWillBeMember<EventTarget> > targets; 361 WillBeHeapVector<RefPtrWillBeMember<EventTarget>> targets;
362 targets.append(this); 362 targets.append(this);
363 targets.append(db()); 363 targets.append(db());
364 364
365 // FIXME: When we allow custom event dispatching, this will probably need to change. 365 // FIXME: When we allow custom event dispatching, this will probably need to change.
366 ASSERT(event->type() == EventTypeNames::complete || event->type() == EventTy peNames::abort); 366 ASSERT(event->type() == EventTypeNames::complete || event->type() == EventTy peNames::abort);
367 bool returnValue = IDBEventDispatcher::dispatch(event.get(), targets); 367 bool returnValue = IDBEventDispatcher::dispatch(event.get(), targets);
368 // FIXME: Try to construct a test where |this| outlives openDBRequest and we 368 // FIXME: Try to construct a test where |this| outlives openDBRequest and we
369 // get a crash. 369 // get a crash.
370 if (m_openDBRequest) { 370 if (m_openDBRequest) {
371 ASSERT(isVersionChange()); 371 ASSERT(isVersionChange());
(...skipping 23 matching lines...) Expand all
395 event->setTarget(this); 395 event->setTarget(this);
396 eventQueue->enqueueEvent(event); 396 eventQueue->enqueueEvent(event);
397 } 397 }
398 398
399 WebIDBDatabase* IDBTransaction::backendDB() const 399 WebIDBDatabase* IDBTransaction::backendDB() const
400 { 400 {
401 return m_database->backend(); 401 return m_database->backend();
402 } 402 }
403 403
404 } // namespace blink 404 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698