| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 { | 55 { |
| 56 return adoptRefWillBeNoop(new IDBObjectStore(metadata, transaction)); | 56 return adoptRefWillBeNoop(new IDBObjectStore(metadata, transaction)); |
| 57 } | 57 } |
| 58 ~IDBObjectStore() { } | 58 ~IDBObjectStore() { } |
| 59 void trace(Visitor*); | 59 void trace(Visitor*); |
| 60 | 60 |
| 61 // Implement the IDBObjectStore IDL | 61 // Implement the IDBObjectStore IDL |
| 62 int64_t id() const { return m_metadata.id; } | 62 int64_t id() const { return m_metadata.id; } |
| 63 const String& name() const { return m_metadata.name; } | 63 const String& name() const { return m_metadata.name; } |
| 64 ScriptValue keyPath(ScriptState*) const; | 64 ScriptValue keyPath(ScriptState*) const; |
| 65 PassRefPtr<DOMStringList> indexNames() const; | 65 PassRefPtrWillBeRawPtr<DOMStringList> indexNames() const; |
| 66 IDBTransaction* transaction() const { return m_transaction.get(); } | 66 IDBTransaction* transaction() const { return m_transaction.get(); } |
| 67 bool autoIncrement() const { return m_metadata.autoIncrement; } | 67 bool autoIncrement() const { return m_metadata.autoIncrement; } |
| 68 | 68 |
| 69 PassRefPtrWillBeRawPtr<IDBRequest> openCursor(ExecutionContext*, const Scrip
tValue& range, const String& direction, ExceptionState&); | 69 PassRefPtrWillBeRawPtr<IDBRequest> openCursor(ExecutionContext*, const Scrip
tValue& range, const String& direction, ExceptionState&); |
| 70 PassRefPtrWillBeRawPtr<IDBRequest> openKeyCursor(ExecutionContext*, const Sc
riptValue& range, const String& direction, ExceptionState&); | 70 PassRefPtrWillBeRawPtr<IDBRequest> openKeyCursor(ExecutionContext*, const Sc
riptValue& range, const String& direction, ExceptionState&); |
| 71 PassRefPtrWillBeRawPtr<IDBRequest> get(ExecutionContext*, const ScriptValue&
key, ExceptionState&); | 71 PassRefPtrWillBeRawPtr<IDBRequest> get(ExecutionContext*, const ScriptValue&
key, ExceptionState&); |
| 72 PassRefPtrWillBeRawPtr<IDBRequest> add(ExecutionContext*, ScriptValue&, cons
t ScriptValue& key, ExceptionState&); | 72 PassRefPtrWillBeRawPtr<IDBRequest> add(ExecutionContext*, ScriptValue&, cons
t ScriptValue& key, ExceptionState&); |
| 73 PassRefPtrWillBeRawPtr<IDBRequest> put(ExecutionContext*, ScriptValue&, cons
t ScriptValue& key, ExceptionState&); | 73 PassRefPtrWillBeRawPtr<IDBRequest> put(ExecutionContext*, ScriptValue&, cons
t ScriptValue& key, ExceptionState&); |
| 74 PassRefPtrWillBeRawPtr<IDBRequest> deleteFunction(ExecutionContext*, const S
criptValue& key, ExceptionState&); | 74 PassRefPtrWillBeRawPtr<IDBRequest> deleteFunction(ExecutionContext*, const S
criptValue& key, ExceptionState&); |
| 75 PassRefPtrWillBeRawPtr<IDBRequest> clear(ExecutionContext*, ExceptionState&)
; | 75 PassRefPtrWillBeRawPtr<IDBRequest> clear(ExecutionContext*, ExceptionState&)
; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 RefPtrWillBeMember<IDBTransaction> m_transaction; | 121 RefPtrWillBeMember<IDBTransaction> m_transaction; |
| 122 bool m_deleted; | 122 bool m_deleted; |
| 123 | 123 |
| 124 typedef WillBeHeapHashMap<String, RefPtrWillBeMember<IDBIndex> > IDBIndexMap
; | 124 typedef WillBeHeapHashMap<String, RefPtrWillBeMember<IDBIndex> > IDBIndexMap
; |
| 125 IDBIndexMap m_indexMap; | 125 IDBIndexMap m_indexMap; |
| 126 }; | 126 }; |
| 127 | 127 |
| 128 } // namespace WebCore | 128 } // namespace WebCore |
| 129 | 129 |
| 130 #endif // IDBObjectStore_h | 130 #endif // IDBObjectStore_h |
| OLD | NEW |