| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 } | 72 } |
| 73 | 73 |
| 74 ScriptValue IDBObjectStore::keyPath(ScriptState* scriptState) const | 74 ScriptValue IDBObjectStore::keyPath(ScriptState* scriptState) const |
| 75 { | 75 { |
| 76 return ScriptValue::from(scriptState, m_metadata.keyPath); | 76 return ScriptValue::from(scriptState, m_metadata.keyPath); |
| 77 } | 77 } |
| 78 | 78 |
| 79 PassRefPtrWillBeRawPtr<DOMStringList> IDBObjectStore::indexNames() const | 79 PassRefPtrWillBeRawPtr<DOMStringList> IDBObjectStore::indexNames() const |
| 80 { | 80 { |
| 81 IDB_TRACE("IDBObjectStore::indexNames"); | 81 IDB_TRACE("IDBObjectStore::indexNames"); |
| 82 RefPtrWillBeRawPtr<DOMStringList> indexNames = DOMStringList::create(); | 82 RefPtrWillBeRawPtr<DOMStringList> indexNames = DOMStringList::create(DOMStri
ngList::IndexedDB); |
| 83 for (IDBObjectStoreMetadata::IndexMap::const_iterator it = m_metadata.indexe
s.begin(); it != m_metadata.indexes.end(); ++it) | 83 for (IDBObjectStoreMetadata::IndexMap::const_iterator it = m_metadata.indexe
s.begin(); it != m_metadata.indexes.end(); ++it) |
| 84 indexNames->append(it->value.name); | 84 indexNames->append(it->value.name); |
| 85 indexNames->sort(); | 85 indexNames->sort(); |
| 86 return indexNames.release(); | 86 return indexNames.release(); |
| 87 } | 87 } |
| 88 | 88 |
| 89 IDBRequest* IDBObjectStore::get(ScriptState* scriptState, const ScriptValue& key
, ExceptionState& exceptionState) | 89 IDBRequest* IDBObjectStore::get(ScriptState* scriptState, const ScriptValue& key
, ExceptionState& exceptionState) |
| 90 { | 90 { |
| 91 IDB_TRACE("IDBObjectStore::get"); | 91 IDB_TRACE("IDBObjectStore::get"); |
| 92 if (isDeleted()) { | 92 if (isDeleted()) { |
| (...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 } | 744 } |
| 745 return IDBIndexMetadata::InvalidId; | 745 return IDBIndexMetadata::InvalidId; |
| 746 } | 746 } |
| 747 | 747 |
| 748 WebIDBDatabase* IDBObjectStore::backendDB() const | 748 WebIDBDatabase* IDBObjectStore::backendDB() const |
| 749 { | 749 { |
| 750 return m_transaction->backendDB(); | 750 return m_transaction->backendDB(); |
| 751 } | 751 } |
| 752 | 752 |
| 753 } // namespace blink | 753 } // namespace blink |
| OLD | NEW |