| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 } | 58 } |
| 59 | 59 |
| 60 IDBIndex::~IDBIndex() {} | 60 IDBIndex::~IDBIndex() {} |
| 61 | 61 |
| 62 DEFINE_TRACE(IDBIndex) { | 62 DEFINE_TRACE(IDBIndex) { |
| 63 visitor->trace(m_objectStore); | 63 visitor->trace(m_objectStore); |
| 64 visitor->trace(m_transaction); | 64 visitor->trace(m_transaction); |
| 65 } | 65 } |
| 66 | 66 |
| 67 void IDBIndex::setName(const String& name, ExceptionState& exceptionState) { | 67 void IDBIndex::setName(const String& name, ExceptionState& exceptionState) { |
| 68 if (!RuntimeEnabledFeatures::indexedDBExperimentalEnabled()) | |
| 69 return; | |
| 70 | |
| 71 IDB_TRACE("IDBIndex::setName"); | 68 IDB_TRACE("IDBIndex::setName"); |
| 72 if (!m_transaction->isVersionChange()) { | 69 if (!m_transaction->isVersionChange()) { |
| 73 exceptionState.throwDOMException( | 70 exceptionState.throwDOMException( |
| 74 InvalidStateError, | 71 InvalidStateError, |
| 75 IDBDatabase::notVersionChangeTransactionErrorMessage); | 72 IDBDatabase::notVersionChangeTransactionErrorMessage); |
| 76 return; | 73 return; |
| 77 } | 74 } |
| 78 if (isDeleted()) { | 75 if (isDeleted()) { |
| 79 exceptionState.throwDOMException(InvalidStateError, | 76 exceptionState.throwDOMException(InvalidStateError, |
| 80 IDBDatabase::indexDeletedErrorMessage); | 77 IDBDatabase::indexDeletedErrorMessage); |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 maxCount, keyOnly, | 370 maxCount, keyOnly, |
| 374 request->createWebCallbacks().release()); | 371 request->createWebCallbacks().release()); |
| 375 return request; | 372 return request; |
| 376 } | 373 } |
| 377 | 374 |
| 378 WebIDBDatabase* IDBIndex::backendDB() const { | 375 WebIDBDatabase* IDBIndex::backendDB() const { |
| 379 return m_transaction->backendDB(); | 376 return m_transaction->backendDB(); |
| 380 } | 377 } |
| 381 | 378 |
| 382 } // namespace blink | 379 } // namespace blink |
| OLD | NEW |