| 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 <set> | 10 #include <set> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 ~WebIDBDatabaseImpl() override; | 33 ~WebIDBDatabaseImpl() override; |
| 34 | 34 |
| 35 // blink::WebIDBDatabase | 35 // blink::WebIDBDatabase |
| 36 void createObjectStore(long long transaction_id, | 36 void createObjectStore(long long transaction_id, |
| 37 long long objectstore_id, | 37 long long objectstore_id, |
| 38 const blink::WebString& name, | 38 const blink::WebString& name, |
| 39 const blink::WebIDBKeyPath& key_path, | 39 const blink::WebIDBKeyPath& key_path, |
| 40 bool auto_increment) override; | 40 bool auto_increment) override; |
| 41 void deleteObjectStore(long long transaction_id, | 41 void deleteObjectStore(long long transaction_id, |
| 42 long long object_store_id) override; | 42 long long object_store_id) override; |
| 43 void renameObjectStore(long long transaction_id, |
| 44 long long object_store_id, |
| 45 const blink::WebString& new_name) override; |
| 43 void createTransaction(long long transaction_id, | 46 void createTransaction(long long transaction_id, |
| 44 blink::WebIDBDatabaseCallbacks* callbacks, | 47 blink::WebIDBDatabaseCallbacks* callbacks, |
| 45 const blink::WebVector<long long>& scope, | 48 const blink::WebVector<long long>& scope, |
| 46 blink::WebIDBTransactionMode mode) override; | 49 blink::WebIDBTransactionMode mode) override; |
| 47 | 50 |
| 48 void close() override; | 51 void close() override; |
| 49 void versionChangeIgnored() override; | 52 void versionChangeIgnored() override; |
| 50 | 53 |
| 51 int32_t addObserver(std::unique_ptr<blink::WebIDBObserver>, | 54 int32_t addObserver(std::unique_ptr<blink::WebIDBObserver>, |
| 52 long long transactionId) override; | 55 long long transactionId) override; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 void createIndex(long long transactionId, | 109 void createIndex(long long transactionId, |
| 107 long long objectStoreId, | 110 long long objectStoreId, |
| 108 long long indexId, | 111 long long indexId, |
| 109 const blink::WebString& name, | 112 const blink::WebString& name, |
| 110 const blink::WebIDBKeyPath&, | 113 const blink::WebIDBKeyPath&, |
| 111 bool unique, | 114 bool unique, |
| 112 bool multiEntry) override; | 115 bool multiEntry) override; |
| 113 void deleteIndex(long long transactionId, | 116 void deleteIndex(long long transactionId, |
| 114 long long objectStoreId, | 117 long long objectStoreId, |
| 115 long long indexId) override; | 118 long long indexId) override; |
| 119 void renameIndex(long long transactionId, |
| 120 long long objectStoreId, |
| 121 long long indexId, |
| 122 const blink::WebString& new_name) override; |
| 116 void abort(long long transaction_id) override; | 123 void abort(long long transaction_id) override; |
| 117 void commit(long long transaction_id) override; | 124 void commit(long long transaction_id) override; |
| 118 void ackReceivedBlobs( | 125 void ackReceivedBlobs( |
| 119 const blink::WebVector<blink::WebString>& uuids) override; | 126 const blink::WebVector<blink::WebString>& uuids) override; |
| 120 | 127 |
| 121 private: | 128 private: |
| 122 int32_t ipc_database_id_; | 129 int32_t ipc_database_id_; |
| 123 int32_t ipc_database_callbacks_id_; | 130 int32_t ipc_database_callbacks_id_; |
| 124 std::set<int32_t> observer_ids_; | 131 std::set<int32_t> observer_ids_; |
| 125 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 132 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 126 }; | 133 }; |
| 127 | 134 |
| 128 } // namespace content | 135 } // namespace content |
| 129 | 136 |
| 130 #endif // CONTENT_CHILD_INDEXED_DB_WEBIDBDATABASE_IMPL_H_ | 137 #endif // CONTENT_CHILD_INDEXED_DB_WEBIDBDATABASE_IMPL_H_ |
| OLD | NEW |