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_INDEXED_DB_DISPATCHER_H_ | 5 #ifndef CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ |
6 #define CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ | 6 #define CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 void OnSuccessArray(const IndexedDBMsg_CallbacksSuccessArray_Params& p); | 229 void OnSuccessArray(const IndexedDBMsg_CallbacksSuccessArray_Params& p); |
230 void OnSuccessInteger(int32_t ipc_thread_id, | 230 void OnSuccessInteger(int32_t ipc_thread_id, |
231 int32_t ipc_callbacks_id, | 231 int32_t ipc_callbacks_id, |
232 int64_t value); | 232 int64_t value); |
233 void OnSuccessUndefined(int32_t ipc_thread_id, int32_t ipc_callbacks_id); | 233 void OnSuccessUndefined(int32_t ipc_thread_id, int32_t ipc_callbacks_id); |
234 void OnError(int32_t ipc_thread_id, | 234 void OnError(int32_t ipc_thread_id, |
235 int32_t ipc_callbacks_id, | 235 int32_t ipc_callbacks_id, |
236 int code, | 236 int code, |
237 const base::string16& message); | 237 const base::string16& message); |
238 void OnDatabaseChanges(int32_t ipc_thread_id, | 238 void OnDatabaseChanges(int32_t ipc_thread_id, |
239 int32_t ipc_database_id, | |
240 const IndexedDBMsg_ObserverChanges&); | 239 const IndexedDBMsg_ObserverChanges&); |
241 | 240 |
242 // Reset cursor prefetch caches for all cursors except exception_cursor_id. | 241 // Reset cursor prefetch caches for all cursors except exception_cursor_id. |
243 void ResetCursorPrefetchCaches(int64_t transaction_id, | 242 void ResetCursorPrefetchCaches(int64_t transaction_id, |
244 int32_t ipc_exception_cursor_id); | 243 int32_t ipc_exception_cursor_id); |
245 | 244 |
246 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 245 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
247 | 246 |
248 // Maximum size (in bytes) of value/key pair allowed for put requests. Any | 247 // Maximum size (in bytes) of value/key pair allowed for put requests. Any |
249 // requests larger than this size will be rejected. | 248 // requests larger than this size will be rejected. |
(...skipping 25 matching lines...) Expand all Loading... |
275 std::map<int32_t, WebIDBCursorImpl*> cursors_; | 274 std::map<int32_t, WebIDBCursorImpl*> cursors_; |
276 | 275 |
277 std::map<int32_t, WebIDBDatabaseImpl*> databases_; | 276 std::map<int32_t, WebIDBDatabaseImpl*> databases_; |
278 | 277 |
279 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); | 278 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); |
280 }; | 279 }; |
281 | 280 |
282 } // namespace content | 281 } // namespace content |
283 | 282 |
284 #endif // CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ | 283 #endif // CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ |
OLD | NEW |