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 12 matching lines...) Expand all Loading... |
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #include "config.h" | 26 #include "config.h" |
27 #include "modules/indexeddb/IDBIndex.h" | 27 #include "modules/indexeddb/IDBIndex.h" |
28 | 28 |
29 #include "bindings/v8/ExceptionState.h" | 29 #include "bindings/v8/ExceptionState.h" |
30 #include "core/dom/ExceptionCode.h" | 30 #include "core/dom/ExceptionCode.h" |
31 #include "core/dom/ExecutionContext.h" | 31 #include "core/dom/ExecutionContext.h" |
32 #include "modules/indexeddb/IDBKey.h" | 32 #include "modules/indexeddb/IDBKey.h" |
33 #include "modules/indexeddb/IDBKeyRange.h" | |
34 #include "modules/indexeddb/IDBObjectStore.h" | |
35 #include "modules/indexeddb/IDBRequest.h" | |
36 #include "modules/indexeddb/IDBTracing.h" | 33 #include "modules/indexeddb/IDBTracing.h" |
37 #include "modules/indexeddb/IDBTransaction.h" | 34 #include "modules/indexeddb/IDBTransaction.h" |
38 | 35 |
39 namespace WebCore { | 36 namespace WebCore { |
40 | 37 |
41 IDBIndex::IDBIndex(const IDBIndexMetadata& metadata, IDBObjectStore* objectStore
, IDBTransaction* transaction) | 38 IDBIndex::IDBIndex(const IDBIndexMetadata& metadata, IDBObjectStore* objectStore
, IDBTransaction* transaction) |
42 : m_metadata(metadata) | 39 : m_metadata(metadata) |
43 , m_objectStore(objectStore) | 40 , m_objectStore(objectStore) |
44 , m_transaction(transaction) | 41 , m_transaction(transaction) |
45 , m_deleted(false) | 42 , m_deleted(false) |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 { | 201 { |
205 return m_transaction->backendDB(); | 202 return m_transaction->backendDB(); |
206 } | 203 } |
207 | 204 |
208 bool IDBIndex::isDeleted() const | 205 bool IDBIndex::isDeleted() const |
209 { | 206 { |
210 return m_deleted || m_objectStore->isDeleted(); | 207 return m_deleted || m_objectStore->isDeleted(); |
211 } | 208 } |
212 | 209 |
213 } // namespace WebCore | 210 } // namespace WebCore |
OLD | NEW |