| 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 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 } | 480 } |
| 481 | 481 |
| 482 } | 482 } |
| 483 | 483 |
| 484 RefPtr<ScriptState> m_scriptState; | 484 RefPtr<ScriptState> m_scriptState; |
| 485 PersistentWillBeMember<IDBDatabase> m_database; | 485 PersistentWillBeMember<IDBDatabase> m_database; |
| 486 const int64_t m_transactionId; | 486 const int64_t m_transactionId; |
| 487 const int64_t m_objectStoreId; | 487 const int64_t m_objectStoreId; |
| 488 const IDBIndexMetadata m_indexMetadata; | 488 const IDBIndexMetadata m_indexMetadata; |
| 489 }; | 489 }; |
| 490 } | 490 } // namespace |
| 491 | 491 |
| 492 IDBIndex* IDBObjectStore::createIndex(ScriptState* scriptState, const String& na
me, const IDBKeyPath& keyPath, const IDBIndexParameters& options, ExceptionState
& exceptionState) | 492 IDBIndex* IDBObjectStore::createIndex(ScriptState* scriptState, const String& na
me, const IDBKeyPath& keyPath, const IDBIndexParameters& options, ExceptionState
& exceptionState) |
| 493 { | 493 { |
| 494 IDB_TRACE("IDBObjectStore::createIndex"); | 494 IDB_TRACE("IDBObjectStore::createIndex"); |
| 495 if (!m_transaction->isVersionChange()) { | 495 if (!m_transaction->isVersionChange()) { |
| 496 exceptionState.throwDOMException(InvalidStateError, IDBDatabase::notVers
ionChangeTransactionErrorMessage); | 496 exceptionState.throwDOMException(InvalidStateError, IDBDatabase::notVers
ionChangeTransactionErrorMessage); |
| 497 return nullptr; | 497 return nullptr; |
| 498 } | 498 } |
| 499 if (isDeleted()) { | 499 if (isDeleted()) { |
| 500 exceptionState.throwDOMException(InvalidStateError, IDBDatabase::objectS
toreDeletedErrorMessage); | 500 exceptionState.throwDOMException(InvalidStateError, IDBDatabase::objectS
toreDeletedErrorMessage); |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 746 } | 746 } |
| 747 return IDBIndexMetadata::InvalidId; | 747 return IDBIndexMetadata::InvalidId; |
| 748 } | 748 } |
| 749 | 749 |
| 750 WebIDBDatabase* IDBObjectStore::backendDB() const | 750 WebIDBDatabase* IDBObjectStore::backendDB() const |
| 751 { | 751 { |
| 752 return m_transaction->backendDB(); | 752 return m_transaction->backendDB(); |
| 753 } | 753 } |
| 754 | 754 |
| 755 } // namespace blink | 755 } // namespace blink |
| OLD | NEW |