OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ |
6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ | 6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 int32 ipc_thread_id, | 177 int32 ipc_thread_id, |
178 int32 ipc_callbacks_id, | 178 int32 ipc_callbacks_id, |
179 const IndexedDBKey& key); | 179 const IndexedDBKey& key); |
180 void OnPrefetch(int32 ipc_cursor_id, | 180 void OnPrefetch(int32 ipc_cursor_id, |
181 int32 ipc_thread_id, | 181 int32 ipc_thread_id, |
182 int32 ipc_callbacks_id, | 182 int32 ipc_callbacks_id, |
183 int n); | 183 int n); |
184 void OnPrefetchReset(int32 ipc_cursor_id, | 184 void OnPrefetchReset(int32 ipc_cursor_id, |
185 int used_prefetches, | 185 int used_prefetches, |
186 int unused_prefetches); | 186 int unused_prefetches); |
187 void OnDelete(int32 ipc_object_store_id, | |
188 int32 ipc_thread_id, | |
189 int32 ipc_callbacks_id); | |
190 void OnDestroyed(int32 ipc_cursor_id); | 187 void OnDestroyed(int32 ipc_cursor_id); |
191 | 188 |
192 IndexedDBDispatcherHost* parent_; | 189 IndexedDBDispatcherHost* parent_; |
193 IDMap<WebKit::WebIDBCursor, IDMapOwnPointer> map_; | 190 IDMap<WebKit::WebIDBCursor, IDMapOwnPointer> map_; |
194 }; | 191 }; |
195 | 192 |
196 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; | 193 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; |
197 | 194 |
198 // Only access on WebKit thread. | 195 // Only access on WebKit thread. |
199 scoped_ptr<DatabaseDispatcherHost> database_dispatcher_host_; | 196 scoped_ptr<DatabaseDispatcherHost> database_dispatcher_host_; |
200 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_; | 197 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_; |
201 | 198 |
202 // Used to dispatch messages to the correct view host. | 199 // Used to dispatch messages to the correct view host. |
203 int ipc_process_id_; | 200 int ipc_process_id_; |
204 | 201 |
205 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); | 202 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); |
206 }; | 203 }; |
207 | 204 |
208 } // namespace content | 205 } // namespace content |
209 | 206 |
210 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ | 207 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ |
OLD | NEW |