| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_CHILD_INDEXED_DB_WEBIDBDATABASE_IMPL_H_ | 5 #ifndef CONTENT_CHILD_INDEXED_DB_WEBIDBDATABASE_IMPL_H_ |
| 6 #define CONTENT_CHILD_INDEXED_DB_WEBIDBDATABASE_IMPL_H_ | 6 #define CONTENT_CHILD_INDEXED_DB_WEBIDBDATABASE_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 long long object_store_id) override; | 40 long long object_store_id) override; |
| 41 void createTransaction(long long transaction_id, | 41 void createTransaction(long long transaction_id, |
| 42 blink::WebIDBDatabaseCallbacks* callbacks, | 42 blink::WebIDBDatabaseCallbacks* callbacks, |
| 43 const blink::WebVector<long long>& scope, | 43 const blink::WebVector<long long>& scope, |
| 44 blink::WebIDBTransactionMode mode) override; | 44 blink::WebIDBTransactionMode mode) override; |
| 45 | 45 |
| 46 void close() override; | 46 void close() override; |
| 47 void versionChangeIgnored() override; | 47 void versionChangeIgnored() override; |
| 48 | 48 |
| 49 void observe(blink::IDBObserver* observer, long long transactionId) override; | 49 void observe(blink::IDBObserver* observer, long long transactionId) override; |
| 50 void unobserve(blink::IDBObserver* observer) override; |
| 50 | 51 |
| 51 void get(long long transactionId, | 52 void get(long long transactionId, |
| 52 long long objectStoreId, | 53 long long objectStoreId, |
| 53 long long indexId, | 54 long long indexId, |
| 54 const blink::WebIDBKeyRange&, | 55 const blink::WebIDBKeyRange&, |
| 55 bool keyOnly, | 56 bool keyOnly, |
| 56 blink::WebIDBCallbacks*) override; | 57 blink::WebIDBCallbacks*) override; |
| 57 void getAll(long long transactionId, | 58 void getAll(long long transactionId, |
| 58 long long objectStoreId, | 59 long long objectStoreId, |
| 59 long long indexId, | 60 long long indexId, |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 long long indexId) override; | 111 long long indexId) override; |
| 111 void abort(long long transaction_id) override; | 112 void abort(long long transaction_id) override; |
| 112 void commit(long long transaction_id) override; | 113 void commit(long long transaction_id) override; |
| 113 void ackReceivedBlobs( | 114 void ackReceivedBlobs( |
| 114 const blink::WebVector<blink::WebString>& uuids) override; | 115 const blink::WebVector<blink::WebString>& uuids) override; |
| 115 | 116 |
| 116 private: | 117 private: |
| 117 int32_t ipc_database_id_; | 118 int32_t ipc_database_id_; |
| 118 int32_t ipc_database_callbacks_id_; | 119 int32_t ipc_database_callbacks_id_; |
| 119 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 120 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 121 std::vector<int32_t> observers_id_; |
| 120 }; | 122 }; |
| 121 | 123 |
| 122 } // namespace content | 124 } // namespace content |
| 123 | 125 |
| 124 #endif // CONTENT_CHILD_INDEXED_DB_WEBIDBDATABASE_IMPL_H_ | 126 #endif // CONTENT_CHILD_INDEXED_DB_WEBIDBDATABASE_IMPL_H_ |
| OLD | NEW |