| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 { | 71 { |
| 72 visitor->trace(m_transaction); | 72 visitor->trace(m_transaction); |
| 73 visitor->trace(m_indexMap); | 73 visitor->trace(m_indexMap); |
| 74 } | 74 } |
| 75 | 75 |
| 76 ScriptValue IDBObjectStore::keyPath(ScriptState* scriptState) const | 76 ScriptValue IDBObjectStore::keyPath(ScriptState* scriptState) const |
| 77 { | 77 { |
| 78 return idbAnyToScriptValue(scriptState, IDBAny::create(m_metadata.keyPath)); | 78 return idbAnyToScriptValue(scriptState, IDBAny::create(m_metadata.keyPath)); |
| 79 } | 79 } |
| 80 | 80 |
| 81 PassRefPtr<DOMStringList> IDBObjectStore::indexNames() const | 81 PassRefPtrWillBeRawPtr<DOMStringList> IDBObjectStore::indexNames() const |
| 82 { | 82 { |
| 83 IDB_TRACE("IDBObjectStore::indexNames"); | 83 IDB_TRACE("IDBObjectStore::indexNames"); |
| 84 RefPtr<DOMStringList> indexNames = DOMStringList::create(); | 84 RefPtrWillBeRawPtr<DOMStringList> indexNames = DOMStringList::create(); |
| 85 for (IDBObjectStoreMetadata::IndexMap::const_iterator it = m_metadata.indexe
s.begin(); it != m_metadata.indexes.end(); ++it) | 85 for (IDBObjectStoreMetadata::IndexMap::const_iterator it = m_metadata.indexe
s.begin(); it != m_metadata.indexes.end(); ++it) |
| 86 indexNames->append(it->value.name); | 86 indexNames->append(it->value.name); |
| 87 indexNames->sort(); | 87 indexNames->sort(); |
| 88 return indexNames.release(); | 88 return indexNames.release(); |
| 89 } | 89 } |
| 90 | 90 |
| 91 PassRefPtrWillBeRawPtr<IDBRequest> IDBObjectStore::get(ExecutionContext* context
, const ScriptValue& key, ExceptionState& exceptionState) | 91 PassRefPtrWillBeRawPtr<IDBRequest> IDBObjectStore::get(ExecutionContext* context
, const ScriptValue& key, ExceptionState& exceptionState) |
| 92 { | 92 { |
| 93 IDB_TRACE("IDBObjectStore::get"); | 93 IDB_TRACE("IDBObjectStore::get"); |
| 94 if (isDeleted()) { | 94 if (isDeleted()) { |
| (...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 672 } | 672 } |
| 673 return IDBIndexMetadata::InvalidId; | 673 return IDBIndexMetadata::InvalidId; |
| 674 } | 674 } |
| 675 | 675 |
| 676 WebIDBDatabase* IDBObjectStore::backendDB() const | 676 WebIDBDatabase* IDBObjectStore::backendDB() const |
| 677 { | 677 { |
| 678 return m_transaction->backendDB(); | 678 return m_transaction->backendDB(); |
| 679 } | 679 } |
| 680 | 680 |
| 681 } // namespace WebCore | 681 } // namespace WebCore |
| OLD | NEW |