OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/id_map.h" | 10 #include "base/id_map.h" |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 void OnValue(int32 idb_object_store_id, | 231 void OnValue(int32 idb_object_store_id, |
232 content::SerializedScriptValue* script_value); | 232 content::SerializedScriptValue* script_value); |
233 void OnUpdate(int32 idb_object_store_id, | 233 void OnUpdate(int32 idb_object_store_id, |
234 int32 response_id, | 234 int32 response_id, |
235 const content::SerializedScriptValue& value, | 235 const content::SerializedScriptValue& value, |
236 WebKit::WebExceptionCode* ec); | 236 WebKit::WebExceptionCode* ec); |
237 void OnContinue(int32 idb_object_store_id, | 237 void OnContinue(int32 idb_object_store_id, |
238 int32 response_id, | 238 int32 response_id, |
239 const IndexedDBKey& key, | 239 const IndexedDBKey& key, |
240 WebKit::WebExceptionCode* ec); | 240 WebKit::WebExceptionCode* ec); |
| 241 void OnPrefetch(int32 idb_cursor_id, |
| 242 int32 response_id, |
| 243 int n, |
| 244 WebKit::WebExceptionCode* ec); |
| 245 void OnPrefetchReset(int32 idb_cursor_id, int used_prefetches, |
| 246 int unused_prefetches); |
241 void OnDelete(int32 idb_object_store_id, | 247 void OnDelete(int32 idb_object_store_id, |
242 int32 response_id, | 248 int32 response_id, |
243 WebKit::WebExceptionCode* ec); | 249 WebKit::WebExceptionCode* ec); |
244 void OnDestroyed(int32 idb_cursor_id); | 250 void OnDestroyed(int32 idb_cursor_id); |
245 | 251 |
246 IndexedDBDispatcherHost* parent_; | 252 IndexedDBDispatcherHost* parent_; |
247 IDMap<WebKit::WebIDBCursor, IDMapOwnPointer> map_; | 253 IDMap<WebKit::WebIDBCursor, IDMapOwnPointer> map_; |
248 }; | 254 }; |
249 | 255 |
250 class TransactionDispatcherHost { | 256 class TransactionDispatcherHost { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_; | 288 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_; |
283 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_; | 289 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_; |
284 | 290 |
285 // Used to dispatch messages to the correct view host. | 291 // Used to dispatch messages to the correct view host. |
286 int process_id_; | 292 int process_id_; |
287 | 293 |
288 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); | 294 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); |
289 }; | 295 }; |
290 | 296 |
291 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ | 297 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ |
OLD | NEW |