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> |
| 11 |
10 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
11 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBCursor.h" | 13 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBCursor.h" |
12 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabase.h" | 14 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabase.h" |
13 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBTypes.h" | 15 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBTypes.h" |
14 | 16 |
15 namespace blink { | 17 namespace blink { |
16 class WebBlobInfo; | 18 class WebBlobInfo; |
17 class WebIDBCallbacks; | 19 class WebIDBCallbacks; |
18 class WebIDBDatabaseCallbacks; | 20 class WebIDBDatabaseCallbacks; |
19 class WebIDBObserver; | 21 class WebIDBObserver; |
(...skipping 21 matching lines...) Expand all Loading... |
41 void createTransaction(long long transaction_id, | 43 void createTransaction(long long transaction_id, |
42 blink::WebIDBDatabaseCallbacks* callbacks, | 44 blink::WebIDBDatabaseCallbacks* callbacks, |
43 const blink::WebVector<long long>& scope, | 45 const blink::WebVector<long long>& scope, |
44 blink::WebIDBTransactionMode mode) override; | 46 blink::WebIDBTransactionMode mode) override; |
45 | 47 |
46 void close() override; | 48 void close() override; |
47 void versionChangeIgnored() override; | 49 void versionChangeIgnored() override; |
48 | 50 |
49 int32_t addObserver(std::unique_ptr<blink::WebIDBObserver>, | 51 int32_t addObserver(std::unique_ptr<blink::WebIDBObserver>, |
50 long long transactionId) override; | 52 long long transactionId) override; |
51 bool containsObserverId(int32_t id) const override; | |
52 void removeObservers( | 53 void removeObservers( |
53 const std::vector<int32_t>& observer_ids_to_remove) override; | 54 const blink::WebVector<int32_t>& observer_ids_to_remove) override; |
54 | 55 |
55 void get(long long transactionId, | 56 void get(long long transactionId, |
56 long long objectStoreId, | 57 long long objectStoreId, |
57 long long indexId, | 58 long long indexId, |
58 const blink::WebIDBKeyRange&, | 59 const blink::WebIDBKeyRange&, |
59 bool keyOnly, | 60 bool keyOnly, |
60 blink::WebIDBCallbacks*) override; | 61 blink::WebIDBCallbacks*) override; |
61 void getAll(long long transactionId, | 62 void getAll(long long transactionId, |
62 long long objectStoreId, | 63 long long objectStoreId, |
63 long long indexId, | 64 long long indexId, |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 private: | 121 private: |
121 int32_t ipc_database_id_; | 122 int32_t ipc_database_id_; |
122 int32_t ipc_database_callbacks_id_; | 123 int32_t ipc_database_callbacks_id_; |
123 std::set<int32_t> observer_ids_; | 124 std::set<int32_t> observer_ids_; |
124 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 125 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
125 }; | 126 }; |
126 | 127 |
127 } // namespace content | 128 } // namespace content |
128 | 129 |
129 #endif // CONTENT_CHILD_INDEXED_DB_WEBIDBDATABASE_IMPL_H_ | 130 #endif // CONTENT_CHILD_INDEXED_DB_WEBIDBDATABASE_IMPL_H_ |
OLD | NEW |