Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(723)

Side by Side Diff: content/child/indexed_db/webidbdatabase_impl.h

Issue 2370643004: Port messages sent by WebIDBFactoryImpl to Mojo. (Closed)
Patch Set: Require explicit wrapping when discarding map keys. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 10 matching lines...) Expand all
21 class WebIDBObserver; 21 class WebIDBObserver;
22 class WebString; 22 class WebString;
23 } 23 }
24 24
25 namespace content { 25 namespace content {
26 class ThreadSafeSender; 26 class ThreadSafeSender;
27 27
28 class WebIDBDatabaseImpl : public blink::WebIDBDatabase { 28 class WebIDBDatabaseImpl : public blink::WebIDBDatabase {
29 public: 29 public:
30 WebIDBDatabaseImpl(int32_t ipc_database_id, 30 WebIDBDatabaseImpl(int32_t ipc_database_id,
31 int32_t ipc_database_callbacks_id,
32 ThreadSafeSender* thread_safe_sender); 31 ThreadSafeSender* thread_safe_sender);
33 ~WebIDBDatabaseImpl() override; 32 ~WebIDBDatabaseImpl() override;
34 33
35 // blink::WebIDBDatabase 34 // blink::WebIDBDatabase
36 void createObjectStore(long long transaction_id, 35 void createObjectStore(long long transaction_id,
37 long long objectstore_id, 36 long long objectstore_id,
38 const blink::WebString& name, 37 const blink::WebString& name,
39 const blink::WebIDBKeyPath& key_path, 38 const blink::WebIDBKeyPath& key_path,
40 bool auto_increment) override; 39 bool auto_increment) override;
41 void deleteObjectStore(long long transaction_id, 40 void deleteObjectStore(long long transaction_id,
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 long long objectStoreId, 118 long long objectStoreId,
120 long long indexId, 119 long long indexId,
121 const blink::WebString& new_name) override; 120 const blink::WebString& new_name) override;
122 void abort(long long transaction_id) override; 121 void abort(long long transaction_id) override;
123 void commit(long long transaction_id) override; 122 void commit(long long transaction_id) override;
124 void ackReceivedBlobs( 123 void ackReceivedBlobs(
125 const blink::WebVector<blink::WebString>& uuids) override; 124 const blink::WebVector<blink::WebString>& uuids) override;
126 125
127 private: 126 private:
128 int32_t ipc_database_id_; 127 int32_t ipc_database_id_;
129 int32_t ipc_database_callbacks_id_;
130 std::set<int32_t> observer_ids_; 128 std::set<int32_t> observer_ids_;
131 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 129 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
132 }; 130 };
133 131
134 } // namespace content 132 } // namespace content
135 133
136 #endif // CONTENT_CHILD_INDEXED_DB_WEBIDBDATABASE_IMPL_H_ 134 #endif // CONTENT_CHILD_INDEXED_DB_WEBIDBDATABASE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698