| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 using blink::WebIDBCallbacks; | 42 using blink::WebIDBCallbacks; |
| 43 using blink::WebIDBCursor; | 43 using blink::WebIDBCursor; |
| 44 using blink::WebIDBDatabase; | 44 using blink::WebIDBDatabase; |
| 45 | 45 |
| 46 namespace blink { | 46 namespace blink { |
| 47 | 47 |
| 48 IDBIndex::IDBIndex(const IDBIndexMetadata& metadata, IDBObjectStore* objectStore
, IDBTransaction* transaction) | 48 IDBIndex::IDBIndex(const IDBIndexMetadata& metadata, IDBObjectStore* objectStore
, IDBTransaction* transaction) |
| 49 : m_metadata(metadata) | 49 : m_metadata(metadata) |
| 50 , m_objectStore(objectStore) | 50 , m_objectStore(objectStore) |
| 51 , m_transaction(transaction) | 51 , m_transaction(transaction) |
| 52 , m_deleted(false) | |
| 53 { | 52 { |
| 54 ASSERT(m_objectStore); | 53 ASSERT(m_objectStore); |
| 55 ASSERT(m_transaction); | 54 ASSERT(m_transaction); |
| 56 ASSERT(m_metadata.id != IDBIndexMetadata::InvalidId); | 55 ASSERT(m_metadata.id != IDBIndexMetadata::InvalidId); |
| 57 } | 56 } |
| 58 | 57 |
| 59 IDBIndex::~IDBIndex() | 58 IDBIndex::~IDBIndex() |
| 60 { | 59 { |
| 61 } | 60 } |
| 62 | 61 |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 { | 267 { |
| 269 return m_transaction->backendDB(); | 268 return m_transaction->backendDB(); |
| 270 } | 269 } |
| 271 | 270 |
| 272 bool IDBIndex::isDeleted() const | 271 bool IDBIndex::isDeleted() const |
| 273 { | 272 { |
| 274 return m_deleted || m_objectStore->isDeleted(); | 273 return m_deleted || m_objectStore->isDeleted(); |
| 275 } | 274 } |
| 276 | 275 |
| 277 } // namespace blink | 276 } // namespace blink |
| OLD | NEW |