| 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 24 matching lines...) Expand all Loading... |
| 35 #include "modules/indexeddb/IDBObjectStore.h" | 35 #include "modules/indexeddb/IDBObjectStore.h" |
| 36 #include "modules/indexeddb/IDBTracing.h" | 36 #include "modules/indexeddb/IDBTracing.h" |
| 37 #include "modules/indexeddb/IDBTransaction.h" | 37 #include "modules/indexeddb/IDBTransaction.h" |
| 38 #include "modules/indexeddb/WebIDBCallbacksImpl.h" | 38 #include "modules/indexeddb/WebIDBCallbacksImpl.h" |
| 39 #include "public/platform/WebIDBKeyRange.h" | 39 #include "public/platform/WebIDBKeyRange.h" |
| 40 | 40 |
| 41 using blink::WebIDBCallbacks; | 41 using blink::WebIDBCallbacks; |
| 42 using blink::WebIDBCursor; | 42 using blink::WebIDBCursor; |
| 43 using blink::WebIDBDatabase; | 43 using blink::WebIDBDatabase; |
| 44 | 44 |
| 45 namespace WebCore { | 45 namespace blink { |
| 46 | 46 |
| 47 IDBIndex::IDBIndex(const IDBIndexMetadata& metadata, IDBObjectStore* objectStore
, IDBTransaction* transaction) | 47 IDBIndex::IDBIndex(const IDBIndexMetadata& metadata, IDBObjectStore* objectStore
, IDBTransaction* transaction) |
| 48 : m_metadata(metadata) | 48 : m_metadata(metadata) |
| 49 , m_objectStore(objectStore) | 49 , m_objectStore(objectStore) |
| 50 , m_transaction(transaction) | 50 , m_transaction(transaction) |
| 51 , m_deleted(false) | 51 , m_deleted(false) |
| 52 { | 52 { |
| 53 ASSERT(m_objectStore); | 53 ASSERT(m_objectStore); |
| 54 ASSERT(m_transaction); | 54 ASSERT(m_transaction); |
| 55 ASSERT(m_metadata.id != IDBIndexMetadata::InvalidId); | 55 ASSERT(m_metadata.id != IDBIndexMetadata::InvalidId); |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 WebIDBDatabase* IDBIndex::backendDB() const | 220 WebIDBDatabase* IDBIndex::backendDB() const |
| 221 { | 221 { |
| 222 return m_transaction->backendDB(); | 222 return m_transaction->backendDB(); |
| 223 } | 223 } |
| 224 | 224 |
| 225 bool IDBIndex::isDeleted() const | 225 bool IDBIndex::isDeleted() const |
| 226 { | 226 { |
| 227 return m_deleted || m_objectStore->isDeleted(); | 227 return m_deleted || m_objectStore->isDeleted(); |
| 228 } | 228 } |
| 229 | 229 |
| 230 } // namespace WebCore | 230 } // namespace blink |
| OLD | NEW |