| 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 | 326 |
| 327 ASSERT_NOT_REACHED(); | 327 ASSERT_NOT_REACHED(); |
| 328 return IndexedDBNames::readonly; | 328 return IndexedDBNames::readonly; |
| 329 } | 329 } |
| 330 | 330 |
| 331 PassRefPtrWillBeRawPtr<DOMStringList> IDBTransaction::objectStoreNames() const | 331 PassRefPtrWillBeRawPtr<DOMStringList> IDBTransaction::objectStoreNames() const |
| 332 { | 332 { |
| 333 if (m_mode == WebIDBTransactionModeVersionChange) | 333 if (m_mode == WebIDBTransactionModeVersionChange) |
| 334 return m_database->objectStoreNames(); | 334 return m_database->objectStoreNames(); |
| 335 | 335 |
| 336 RefPtrWillBeRawPtr<DOMStringList> objectStoreNames = DOMStringList::create()
; | 336 RefPtrWillBeRawPtr<DOMStringList> objectStoreNames = DOMStringList::create(D
OMStringList::IndexedDB); |
| 337 for (const String& name : m_objectStoreNames) | 337 for (const String& name : m_objectStoreNames) |
| 338 objectStoreNames->append(name); | 338 objectStoreNames->append(name); |
| 339 objectStoreNames->sort(); | 339 objectStoreNames->sort(); |
| 340 return objectStoreNames.release(); | 340 return objectStoreNames.release(); |
| 341 } | 341 } |
| 342 | 342 |
| 343 const AtomicString& IDBTransaction::interfaceName() const | 343 const AtomicString& IDBTransaction::interfaceName() const |
| 344 { | 344 { |
| 345 return EventTargetNames::IDBTransaction; | 345 return EventTargetNames::IDBTransaction; |
| 346 } | 346 } |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 event->setTarget(this); | 408 event->setTarget(this); |
| 409 eventQueue->enqueueEvent(event); | 409 eventQueue->enqueueEvent(event); |
| 410 } | 410 } |
| 411 | 411 |
| 412 WebIDBDatabase* IDBTransaction::backendDB() const | 412 WebIDBDatabase* IDBTransaction::backendDB() const |
| 413 { | 413 { |
| 414 return m_database->backend(); | 414 return m_database->backend(); |
| 415 } | 415 } |
| 416 | 416 |
| 417 } // namespace blink | 417 } // namespace blink |
| OLD | NEW |