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 static IDBObjectStore* create(const IDBObjectStoreMetadata& metadata, IDBTra
nsaction* transaction) | 55 static IDBObjectStore* create(const IDBObjectStoreMetadata& metadata, IDBTra
nsaction* transaction) |
56 { | 56 { |
57 return new IDBObjectStore(metadata, transaction); | 57 return new IDBObjectStore(metadata, transaction); |
58 } | 58 } |
59 ~IDBObjectStore() { } | 59 ~IDBObjectStore() { } |
60 DECLARE_TRACE(); | 60 DECLARE_TRACE(); |
61 | 61 |
62 // Implement the IDBObjectStore IDL | 62 // Implement the IDBObjectStore IDL |
63 int64_t id() const { return m_metadata.id; } | 63 int64_t id() const { return m_metadata.id; } |
64 const String& name() const { return m_metadata.name; } | 64 const String& name() const { return m_metadata.name; } |
| 65 void setName(const String& name, ExceptionState&); |
65 ScriptValue keyPath(ScriptState*) const; | 66 ScriptValue keyPath(ScriptState*) const; |
66 DOMStringList* indexNames() const; | 67 DOMStringList* indexNames() const; |
67 IDBTransaction* transaction() const { return m_transaction.get(); } | 68 IDBTransaction* transaction() const { return m_transaction.get(); } |
68 bool autoIncrement() const { return m_metadata.autoIncrement; } | 69 bool autoIncrement() const { return m_metadata.autoIncrement; } |
69 | 70 |
70 IDBRequest* openCursor(ScriptState*, const ScriptValue& range, const String&
direction, ExceptionState&); | 71 IDBRequest* openCursor(ScriptState*, const ScriptValue& range, const String&
direction, ExceptionState&); |
71 IDBRequest* openKeyCursor(ScriptState*, const ScriptValue& range, const Stri
ng& direction, ExceptionState&); | 72 IDBRequest* openKeyCursor(ScriptState*, const ScriptValue& range, const Stri
ng& direction, ExceptionState&); |
72 IDBRequest* get(ScriptState*, const ScriptValue& key, ExceptionState&); | 73 IDBRequest* get(ScriptState*, const ScriptValue& key, ExceptionState&); |
73 IDBRequest* getAll(ScriptState*, const ScriptValue& range, unsigned long max
Count, ExceptionState&); | 74 IDBRequest* getAll(ScriptState*, const ScriptValue& range, unsigned long max
Count, ExceptionState&); |
74 IDBRequest* getAll(ScriptState*, const ScriptValue& range, ExceptionState&); | 75 IDBRequest* getAll(ScriptState*, const ScriptValue& range, ExceptionState&); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 IDBIndexMap m_indexMap; | 127 IDBIndexMap m_indexMap; |
127 | 128 |
128 // Used to mark indexes created in an aborted upgrade transaction as | 129 // Used to mark indexes created in an aborted upgrade transaction as |
129 // deleted. | 130 // deleted. |
130 HeapHashSet<Member<IDBIndex>> m_createdIndexes; | 131 HeapHashSet<Member<IDBIndex>> m_createdIndexes; |
131 }; | 132 }; |
132 | 133 |
133 } // namespace blink | 134 } // namespace blink |
134 | 135 |
135 #endif // IDBObjectStore_h | 136 #endif // IDBObjectStore_h |
OLD | NEW |