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

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

Issue 218953002: Oilpan: IDBCursor should be detached from IDBRequest when the IDBRequest stops (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 381
382 if (m_readyState == PENDING) { 382 if (m_readyState == PENDING) {
383 m_readyState = EarlyDeath; 383 m_readyState = EarlyDeath;
384 if (m_transaction) { 384 if (m_transaction) {
385 m_transaction->unregisterRequest(this); 385 m_transaction->unregisterRequest(this);
386 m_transaction.clear(); 386 m_transaction.clear();
387 } 387 }
388 } 388 }
389 389
390 m_enqueuedEvents.clear(); 390 m_enqueuedEvents.clear();
391 m_result.clear();
391 } 392 }
392 393
393 const AtomicString& IDBRequest::interfaceName() const 394 const AtomicString& IDBRequest::interfaceName() const
394 { 395 {
395 return EventTargetNames::IDBRequest; 396 return EventTargetNames::IDBRequest;
396 } 397 }
397 398
398 ExecutionContext* IDBRequest::executionContext() const 399 ExecutionContext* IDBRequest::executionContext() const
399 { 400 {
400 return ActiveDOMObject::executionContext(); 401 return ActiveDOMObject::executionContext();
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 522
522 void IDBRequest::dequeueEvent(Event* event) 523 void IDBRequest::dequeueEvent(Event* event)
523 { 524 {
524 for (size_t i = 0; i < m_enqueuedEvents.size(); ++i) { 525 for (size_t i = 0; i < m_enqueuedEvents.size(); ++i) {
525 if (m_enqueuedEvents[i].get() == event) 526 if (m_enqueuedEvents[i].get() == event)
526 m_enqueuedEvents.remove(i); 527 m_enqueuedEvents.remove(i);
527 } 528 }
528 } 529 }
529 530
530 } // namespace WebCore 531 } // namespace WebCore
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698