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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 if (m_contextStopped) | 362 if (m_contextStopped) |
363 return; | 363 return; |
364 | 364 |
365 m_contextStopped = true; | 365 m_contextStopped = true; |
366 | 366 |
367 abort(IGNORE_EXCEPTION); | 367 abort(IGNORE_EXCEPTION); |
368 } | 368 } |
369 | 369 |
370 void IDBTransaction::enqueueEvent(PassRefPtr<Event> event) | 370 void IDBTransaction::enqueueEvent(PassRefPtr<Event> event) |
371 { | 371 { |
372 ASSERT_WITH_MESSAGE(m_state != Finished, "A finished transaction tried to en
queue an event of type %s.", event->type().string().utf8().data()); | 372 ASSERT_WITH_MESSAGE(m_state != Finished, "A finished transaction tried to en
queue an event of type %s.", event->type().utf8().data()); |
373 if (m_contextStopped || !executionContext()) | 373 if (m_contextStopped || !executionContext()) |
374 return; | 374 return; |
375 | 375 |
376 EventQueue* eventQueue = executionContext()->eventQueue(); | 376 EventQueue* eventQueue = executionContext()->eventQueue(); |
377 event->setTarget(this); | 377 event->setTarget(this); |
378 eventQueue->enqueueEvent(event); | 378 eventQueue->enqueueEvent(event); |
379 } | 379 } |
380 | 380 |
381 blink::WebIDBDatabase* IDBTransaction::backendDB() const | 381 blink::WebIDBDatabase* IDBTransaction::backendDB() const |
382 { | 382 { |
383 return m_database->backend(); | 383 return m_database->backend(); |
384 } | 384 } |
385 | 385 |
386 } // namespace WebCore | 386 } // namespace WebCore |
OLD | NEW |