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