| 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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |