| 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 using blink::WebVector; | 54 using blink::WebVector; |
| 55 | 55 |
| 56 namespace blink { | 56 namespace blink { |
| 57 | 57 |
| 58 IDBObjectStore::IDBObjectStore(const IDBObjectStoreMetadata& metadata, IDBTransa
ction* transaction) | 58 IDBObjectStore::IDBObjectStore(const IDBObjectStoreMetadata& metadata, IDBTransa
ction* transaction) |
| 59 : m_metadata(metadata) | 59 : m_metadata(metadata) |
| 60 , m_transaction(transaction) | 60 , m_transaction(transaction) |
| 61 , m_deleted(false) | 61 , m_deleted(false) |
| 62 { | 62 { |
| 63 ASSERT(m_transaction); | 63 ASSERT(m_transaction); |
| 64 ScriptWrappable::init(this); | |
| 65 } | 64 } |
| 66 | 65 |
| 67 void IDBObjectStore::trace(Visitor* visitor) | 66 void IDBObjectStore::trace(Visitor* visitor) |
| 68 { | 67 { |
| 69 visitor->trace(m_transaction); | 68 visitor->trace(m_transaction); |
| 70 visitor->trace(m_indexMap); | 69 visitor->trace(m_indexMap); |
| 71 } | 70 } |
| 72 | 71 |
| 73 ScriptValue IDBObjectStore::keyPath(ScriptState* scriptState) const | 72 ScriptValue IDBObjectStore::keyPath(ScriptState* scriptState) const |
| 74 { | 73 { |
| (...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 683 } | 682 } |
| 684 return IDBIndexMetadata::InvalidId; | 683 return IDBIndexMetadata::InvalidId; |
| 685 } | 684 } |
| 686 | 685 |
| 687 WebIDBDatabase* IDBObjectStore::backendDB() const | 686 WebIDBDatabase* IDBObjectStore::backendDB() const |
| 688 { | 687 { |
| 689 return m_transaction->backendDB(); | 688 return m_transaction->backendDB(); |
| 690 } | 689 } |
| 691 | 690 |
| 692 } // namespace blink | 691 } // namespace blink |
| OLD | NEW |