| 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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 if (m_mode == WebIDBTransactionModeVersionChange) | 329 if (m_mode == WebIDBTransactionModeVersionChange) |
| 330 return m_database->objectStoreNames(); | 330 return m_database->objectStoreNames(); |
| 331 | 331 |
| 332 RefPtrWillBeRawPtr<DOMStringList> objectStoreNames = DOMStringList::create(D
OMStringList::IndexedDB); | 332 RefPtrWillBeRawPtr<DOMStringList> objectStoreNames = DOMStringList::create(D
OMStringList::IndexedDB); |
| 333 for (const String& name : m_objectStoreNames) | 333 for (const String& name : m_objectStoreNames) |
| 334 objectStoreNames->append(name); | 334 objectStoreNames->append(name); |
| 335 objectStoreNames->sort(); | 335 objectStoreNames->sort(); |
| 336 return objectStoreNames.release(); | 336 return objectStoreNames.release(); |
| 337 } | 337 } |
| 338 | 338 |
| 339 IDBDatabase* IDBTransaction::db() const |
| 340 { |
| 341 return m_database; |
| 342 } |
| 343 |
| 344 DOMException* IDBTransaction::error() const |
| 345 { |
| 346 return m_error; |
| 347 } |
| 348 |
| 339 const AtomicString& IDBTransaction::interfaceName() const | 349 const AtomicString& IDBTransaction::interfaceName() const |
| 340 { | 350 { |
| 341 return EventTargetNames::IDBTransaction; | 351 return EventTargetNames::IDBTransaction; |
| 342 } | 352 } |
| 343 | 353 |
| 344 ExecutionContext* IDBTransaction::executionContext() const | 354 ExecutionContext* IDBTransaction::executionContext() const |
| 345 { | 355 { |
| 346 return ActiveDOMObject::executionContext(); | 356 return ActiveDOMObject::executionContext(); |
| 347 } | 357 } |
| 348 | 358 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 event->setTarget(this); | 414 event->setTarget(this); |
| 405 eventQueue->enqueueEvent(event); | 415 eventQueue->enqueueEvent(event); |
| 406 } | 416 } |
| 407 | 417 |
| 408 WebIDBDatabase* IDBTransaction::backendDB() const | 418 WebIDBDatabase* IDBTransaction::backendDB() const |
| 409 { | 419 { |
| 410 return m_database->backend(); | 420 return m_database->backend(); |
| 411 } | 421 } |
| 412 | 422 |
| 413 } // namespace blink | 423 } // namespace blink |
| OLD | NEW |