| 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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 414     return m_state == Finished; | 414     return m_state == Finished; | 
| 415 } | 415 } | 
| 416 | 416 | 
| 417 void IDBTransaction::stop() | 417 void IDBTransaction::stop() | 
| 418 { | 418 { | 
| 419     if (m_contextStopped) | 419     if (m_contextStopped) | 
| 420         return; | 420         return; | 
| 421 | 421 | 
| 422     m_contextStopped = true; | 422     m_contextStopped = true; | 
| 423 | 423 | 
| 424     abort(IGNORE_EXCEPTION_STATE); | 424     abort(IGNORE_EXCEPTION); | 
| 425 } | 425 } | 
| 426 | 426 | 
| 427 void IDBTransaction::enqueueEvent(PassRefPtr<Event> event) | 427 void IDBTransaction::enqueueEvent(PassRefPtr<Event> event) | 
| 428 { | 428 { | 
| 429     ASSERT_WITH_MESSAGE(m_state != Finished, "A finished transaction tried to en
     queue an event of type %s.", event->type().string().utf8().data()); | 429     ASSERT_WITH_MESSAGE(m_state != Finished, "A finished transaction tried to en
     queue an event of type %s.", event->type().string().utf8().data()); | 
| 430     if (m_contextStopped || !scriptExecutionContext()) | 430     if (m_contextStopped || !scriptExecutionContext()) | 
| 431         return; | 431         return; | 
| 432 | 432 | 
| 433     EventQueue* eventQueue = scriptExecutionContext()->eventQueue(); | 433     EventQueue* eventQueue = scriptExecutionContext()->eventQueue(); | 
| 434     event->setTarget(this); | 434     event->setTarget(this); | 
| 435     eventQueue->enqueueEvent(event); | 435     eventQueue->enqueueEvent(event); | 
| 436 } | 436 } | 
| 437 | 437 | 
| 438 EventTargetData* IDBTransaction::eventTargetData() | 438 EventTargetData* IDBTransaction::eventTargetData() | 
| 439 { | 439 { | 
| 440     return &m_eventTargetData; | 440     return &m_eventTargetData; | 
| 441 } | 441 } | 
| 442 | 442 | 
| 443 EventTargetData* IDBTransaction::ensureEventTargetData() | 443 EventTargetData* IDBTransaction::ensureEventTargetData() | 
| 444 { | 444 { | 
| 445     return &m_eventTargetData; | 445     return &m_eventTargetData; | 
| 446 } | 446 } | 
| 447 | 447 | 
| 448 IDBDatabaseBackendInterface* IDBTransaction::backendDB() const | 448 IDBDatabaseBackendInterface* IDBTransaction::backendDB() const | 
| 449 { | 449 { | 
| 450     return db()->backend(); | 450     return db()->backend(); | 
| 451 } | 451 } | 
| 452 | 452 | 
| 453 } // namespace WebCore | 453 } // namespace WebCore | 
| OLD | NEW | 
|---|