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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 #include "public/platform/WebIDBKeyRange.h" | 46 #include "public/platform/WebIDBKeyRange.h" |
47 #include "public/platform/WebVector.h" | 47 #include "public/platform/WebVector.h" |
48 #include <v8.h> | 48 #include <v8.h> |
49 | 49 |
50 using blink::WebBlobInfo; | 50 using blink::WebBlobInfo; |
51 using blink::WebIDBCallbacks; | 51 using blink::WebIDBCallbacks; |
52 using blink::WebIDBCursor; | 52 using blink::WebIDBCursor; |
53 using blink::WebIDBDatabase; | 53 using blink::WebIDBDatabase; |
54 using blink::WebVector; | 54 using blink::WebVector; |
55 | 55 |
56 namespace WebCore { | 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); | 64 ScriptWrappable::init(this); |
65 } | 65 } |
66 | 66 |
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
683 } | 683 } |
684 } | 684 } |
685 return IDBIndexMetadata::InvalidId; | 685 return IDBIndexMetadata::InvalidId; |
686 } | 686 } |
687 | 687 |
688 WebIDBDatabase* IDBObjectStore::backendDB() const | 688 WebIDBDatabase* IDBObjectStore::backendDB() const |
689 { | 689 { |
690 return m_transaction->backendDB(); | 690 return m_transaction->backendDB(); |
691 } | 691 } |
692 | 692 |
693 } // namespace WebCore | 693 } // namespace blink |
OLD | NEW |