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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 static PassRefPtr<IDBObjectStore> create(const IDBObjectStoreMetadata& metad
ata, IDBTransaction* transaction) | 54 static PassRefPtr<IDBObjectStore> create(const IDBObjectStoreMetadata& metad
ata, IDBTransaction* transaction) |
55 { | 55 { |
56 return adoptRef(new IDBObjectStore(metadata, transaction)); | 56 return adoptRef(new IDBObjectStore(metadata, transaction)); |
57 } | 57 } |
58 ~IDBObjectStore() { } | 58 ~IDBObjectStore() { } |
59 | 59 |
60 // Implement the IDBObjectStore IDL | 60 // Implement the IDBObjectStore IDL |
61 int64_t id() const { return m_metadata.id; } | 61 int64_t id() const { return m_metadata.id; } |
62 const String& name() const { return m_metadata.name; } | 62 const String& name() const { return m_metadata.name; } |
63 ScriptValue keyPath(NewScriptState*) const; | 63 ScriptValue keyPath(NewScriptState*) const; |
64 PassRefPtr<DOMStringList> indexNames() const; | 64 PassRefPtrWillBeRawPtr<DOMStringList> indexNames() const; |
65 PassRefPtr<IDBTransaction> transaction() const { return m_transaction; } | 65 PassRefPtr<IDBTransaction> transaction() const { return m_transaction; } |
66 bool autoIncrement() const { return m_metadata.autoIncrement; } | 66 bool autoIncrement() const { return m_metadata.autoIncrement; } |
67 | 67 |
68 PassRefPtrWillBeRawPtr<IDBRequest> openCursor(ExecutionContext*, const Scrip
tValue& range, const String& direction, ExceptionState&); | 68 PassRefPtrWillBeRawPtr<IDBRequest> openCursor(ExecutionContext*, const Scrip
tValue& range, const String& direction, ExceptionState&); |
69 PassRefPtrWillBeRawPtr<IDBRequest> openKeyCursor(ExecutionContext*, const Sc
riptValue& range, const String& direction, ExceptionState&); | 69 PassRefPtrWillBeRawPtr<IDBRequest> openKeyCursor(ExecutionContext*, const Sc
riptValue& range, const String& direction, ExceptionState&); |
70 PassRefPtrWillBeRawPtr<IDBRequest> get(ExecutionContext*, const ScriptValue&
key, ExceptionState&); | 70 PassRefPtrWillBeRawPtr<IDBRequest> get(ExecutionContext*, const ScriptValue&
key, ExceptionState&); |
71 PassRefPtrWillBeRawPtr<IDBRequest> add(ExecutionContext*, ScriptValue&, cons
t ScriptValue& key, ExceptionState&); | 71 PassRefPtrWillBeRawPtr<IDBRequest> add(ExecutionContext*, ScriptValue&, cons
t ScriptValue& key, ExceptionState&); |
72 PassRefPtrWillBeRawPtr<IDBRequest> put(ExecutionContext*, ScriptValue&, cons
t ScriptValue& key, ExceptionState&); | 72 PassRefPtrWillBeRawPtr<IDBRequest> put(ExecutionContext*, ScriptValue&, cons
t ScriptValue& key, ExceptionState&); |
73 PassRefPtrWillBeRawPtr<IDBRequest> deleteFunction(ExecutionContext*, const S
criptValue& key, ExceptionState&); | 73 PassRefPtrWillBeRawPtr<IDBRequest> deleteFunction(ExecutionContext*, const S
criptValue& key, ExceptionState&); |
74 PassRefPtrWillBeRawPtr<IDBRequest> clear(ExecutionContext*, ExceptionState&)
; | 74 PassRefPtrWillBeRawPtr<IDBRequest> clear(ExecutionContext*, ExceptionState&)
; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 RefPtr<IDBTransaction> m_transaction; | 121 RefPtr<IDBTransaction> m_transaction; |
122 bool m_deleted; | 122 bool m_deleted; |
123 | 123 |
124 typedef HashMap<String, RefPtr<IDBIndex> > IDBIndexMap; | 124 typedef HashMap<String, RefPtr<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 |