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

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

Issue 22417002: Rename ASSERT_NO_EXCEPTION_STATE and IGNORE_EXCEPTION_STATE (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 | « Source/modules/indexeddb/IDBRequest.cpp ('k') | Source/modules/mediasource/MediaSource.cpp » ('j') | 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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBRequest.cpp ('k') | Source/modules/mediasource/MediaSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698