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

Side by Side Diff: Source/modules/indexeddb/IDBDatabase.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
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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 PassRefPtr<IDBTransaction> IDBDatabase::transaction(ScriptExecutionContext* cont ext, const String& storeName, const String& mode, ExceptionState& es) 298 PassRefPtr<IDBTransaction> IDBDatabase::transaction(ScriptExecutionContext* cont ext, const String& storeName, const String& mode, ExceptionState& es)
299 { 299 {
300 RefPtr<DOMStringList> storeNames = DOMStringList::create(); 300 RefPtr<DOMStringList> storeNames = DOMStringList::create();
301 storeNames->append(storeName); 301 storeNames->append(storeName);
302 return transaction(context, storeNames, mode, es); 302 return transaction(context, storeNames, mode, es);
303 } 303 }
304 304
305 void IDBDatabase::forceClose() 305 void IDBDatabase::forceClose()
306 { 306 {
307 for (TransactionMap::const_iterator::Values it = m_transactions.begin().valu es(), end = m_transactions.end().values(); it != end; ++it) 307 for (TransactionMap::const_iterator::Values it = m_transactions.begin().valu es(), end = m_transactions.end().values(); it != end; ++it)
308 (*it)->abort(IGNORE_EXCEPTION_STATE); 308 (*it)->abort(IGNORE_EXCEPTION);
309 this->close(); 309 this->close();
310 enqueueEvent(Event::create(eventNames().closeEvent, false, false)); 310 enqueueEvent(Event::create(eventNames().closeEvent, false, false));
311 } 311 }
312 312
313 void IDBDatabase::close() 313 void IDBDatabase::close()
314 { 314 {
315 IDB_TRACE("IDBDatabase::close"); 315 IDB_TRACE("IDBDatabase::close");
316 if (m_closePending) 316 if (m_closePending)
317 return; 317 return;
318 318
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 { 418 {
419 return &m_eventTargetData; 419 return &m_eventTargetData;
420 } 420 }
421 421
422 EventTargetData* IDBDatabase::ensureEventTargetData() 422 EventTargetData* IDBDatabase::ensureEventTargetData()
423 { 423 {
424 return &m_eventTargetData; 424 return &m_eventTargetData;
425 } 425 }
426 426
427 } // namespace WebCore 427 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/xml/parser/XMLDocumentParser.cpp ('k') | Source/modules/indexeddb/IDBObjectStore.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698