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 30 matching lines...) Expand all Loading... |
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 int32_t addObserver(std::unique_ptr<blink::WebIDBObserver>, | 49 int32_t addObserver(std::unique_ptr<blink::WebIDBObserver>, |
50 long long transactionId) override; | 50 long long transactionId) override; |
51 bool containsObserverId(int32_t id) const override; | |
52 void removeObservers( | 51 void removeObservers( |
53 const std::vector<int32_t>& observer_ids_to_remove) override; | 52 const std::vector<int32_t>& observer_ids_to_remove) override; |
54 | 53 |
55 void get(long long transactionId, | 54 void get(long long transactionId, |
56 long long objectStoreId, | 55 long long objectStoreId, |
57 long long indexId, | 56 long long indexId, |
58 const blink::WebIDBKeyRange&, | 57 const blink::WebIDBKeyRange&, |
59 bool keyOnly, | 58 bool keyOnly, |
60 blink::WebIDBCallbacks*) override; | 59 blink::WebIDBCallbacks*) override; |
61 void getAll(long long transactionId, | 60 void getAll(long long transactionId, |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 private: | 119 private: |
121 int32_t ipc_database_id_; | 120 int32_t ipc_database_id_; |
122 int32_t ipc_database_callbacks_id_; | 121 int32_t ipc_database_callbacks_id_; |
123 std::set<int32_t> observer_ids_; | 122 std::set<int32_t> observer_ids_; |
124 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 123 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
125 }; | 124 }; |
126 | 125 |
127 } // namespace content | 126 } // namespace content |
128 | 127 |
129 #endif // CONTENT_CHILD_INDEXED_DB_WEBIDBDATABASE_IMPL_H_ | 128 #endif // CONTENT_CHILD_INDEXED_DB_WEBIDBDATABASE_IMPL_H_ |
OLD | NEW |