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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 DCHECK(m_metadata.get()); | 69 DCHECK(m_metadata.get()); |
70 } | 70 } |
71 | 71 |
72 DEFINE_TRACE(IDBObjectStore) { | 72 DEFINE_TRACE(IDBObjectStore) { |
73 visitor->trace(m_transaction); | 73 visitor->trace(m_transaction); |
74 visitor->trace(m_indexMap); | 74 visitor->trace(m_indexMap); |
75 } | 75 } |
76 | 76 |
77 void IDBObjectStore::setName(const String& name, | 77 void IDBObjectStore::setName(const String& name, |
78 ExceptionState& exceptionState) { | 78 ExceptionState& exceptionState) { |
79 if (!RuntimeEnabledFeatures::indexedDBExperimentalEnabled()) | |
80 return; | |
81 | |
82 IDB_TRACE("IDBObjectStore::setName"); | 79 IDB_TRACE("IDBObjectStore::setName"); |
83 if (!m_transaction->isVersionChange()) { | 80 if (!m_transaction->isVersionChange()) { |
84 exceptionState.throwDOMException( | 81 exceptionState.throwDOMException( |
85 InvalidStateError, | 82 InvalidStateError, |
86 IDBDatabase::notVersionChangeTransactionErrorMessage); | 83 IDBDatabase::notVersionChangeTransactionErrorMessage); |
87 return; | 84 return; |
88 } | 85 } |
89 if (isDeleted()) { | 86 if (isDeleted()) { |
90 exceptionState.throwDOMException( | 87 exceptionState.throwDOMException( |
91 InvalidStateError, IDBDatabase::objectStoreDeletedErrorMessage); | 88 InvalidStateError, IDBDatabase::objectStoreDeletedErrorMessage); |
(...skipping 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1110 } | 1107 } |
1111 } | 1108 } |
1112 return IDBIndexMetadata::InvalidId; | 1109 return IDBIndexMetadata::InvalidId; |
1113 } | 1110 } |
1114 | 1111 |
1115 WebIDBDatabase* IDBObjectStore::backendDB() const { | 1112 WebIDBDatabase* IDBObjectStore::backendDB() const { |
1116 return m_transaction->backendDB(); | 1113 return m_transaction->backendDB(); |
1117 } | 1114 } |
1118 | 1115 |
1119 } // namespace blink | 1116 } // namespace blink |
OLD | NEW |