| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // We pass a reference to this object before it can be adopted. | 59 // We pass a reference to this object before it can be adopted. |
| 60 relaxAdoptionRequirement(); | 60 relaxAdoptionRequirement(); |
| 61 ScriptWrappable::init(this); | 61 ScriptWrappable::init(this); |
| 62 } | 62 } |
| 63 | 63 |
| 64 ScriptValue IDBObjectStore::keyPath(NewScriptState* scriptState) const | 64 ScriptValue IDBObjectStore::keyPath(NewScriptState* scriptState) const |
| 65 { | 65 { |
| 66 return idbAnyToScriptValue(scriptState, IDBAny::create(m_metadata.keyPath)); | 66 return idbAnyToScriptValue(scriptState, IDBAny::create(m_metadata.keyPath)); |
| 67 } | 67 } |
| 68 | 68 |
| 69 PassRefPtr<DOMStringList> IDBObjectStore::indexNames() const | 69 PassRefPtrWillBeRawPtr<DOMStringList> IDBObjectStore::indexNames() const |
| 70 { | 70 { |
| 71 IDB_TRACE("IDBObjectStore::indexNames"); | 71 IDB_TRACE("IDBObjectStore::indexNames"); |
| 72 RefPtr<DOMStringList> indexNames = DOMStringList::create(); | 72 RefPtrWillBeRawPtr<DOMStringList> indexNames = DOMStringList::create(); |
| 73 for (IDBObjectStoreMetadata::IndexMap::const_iterator it = m_metadata.indexe
s.begin(); it != m_metadata.indexes.end(); ++it) | 73 for (IDBObjectStoreMetadata::IndexMap::const_iterator it = m_metadata.indexe
s.begin(); it != m_metadata.indexes.end(); ++it) |
| 74 indexNames->append(it->value.name); | 74 indexNames->append(it->value.name); |
| 75 indexNames->sort(); | 75 indexNames->sort(); |
| 76 return indexNames.release(); | 76 return indexNames.release(); |
| 77 } | 77 } |
| 78 | 78 |
| 79 PassRefPtrWillBeRawPtr<IDBRequest> IDBObjectStore::get(ExecutionContext* context
, const ScriptValue& key, ExceptionState& exceptionState) | 79 PassRefPtrWillBeRawPtr<IDBRequest> IDBObjectStore::get(ExecutionContext* context
, const ScriptValue& key, ExceptionState& exceptionState) |
| 80 { | 80 { |
| 81 IDB_TRACE("IDBObjectStore::get"); | 81 IDB_TRACE("IDBObjectStore::get"); |
| 82 if (isDeleted()) { | 82 if (isDeleted()) { |
| (...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 } | 656 } |
| 657 return IDBIndexMetadata::InvalidId; | 657 return IDBIndexMetadata::InvalidId; |
| 658 } | 658 } |
| 659 | 659 |
| 660 WebIDBDatabase* IDBObjectStore::backendDB() const | 660 WebIDBDatabase* IDBObjectStore::backendDB() const |
| 661 { | 661 { |
| 662 return m_transaction->backendDB(); | 662 return m_transaction->backendDB(); |
| 663 } | 663 } |
| 664 | 664 |
| 665 } // namespace WebCore | 665 } // namespace WebCore |
| OLD | NEW |