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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 void OnUpgradeNeeded(const IndexedDBMsg_CallbacksUpgradeNeeded_Params& p); | 235 void OnUpgradeNeeded(const IndexedDBMsg_CallbacksUpgradeNeeded_Params& p); |
236 void OnAbort(int32_t ipc_thread_id, | 236 void OnAbort(int32_t ipc_thread_id, |
237 int32_t ipc_database_id, | 237 int32_t ipc_database_id, |
238 int64_t transaction_id, | 238 int64_t transaction_id, |
239 int code, | 239 int code, |
240 const base::string16& message); | 240 const base::string16& message); |
241 void OnComplete(int32_t ipc_thread_id, | 241 void OnComplete(int32_t ipc_thread_id, |
242 int32_t ipc_database_id, | 242 int32_t ipc_database_id, |
243 int64_t transaction_id); | 243 int64_t transaction_id); |
244 void OnForcedClose(int32_t ipc_thread_id, int32_t ipc_database_id); | 244 void OnForcedClose(int32_t ipc_thread_id, int32_t ipc_database_id); |
245 void OnIntVersionChange(int32_t ipc_thread_id, | 245 void OnVersionChange(int32_t ipc_thread_id, |
246 int32_t ipc_database_id, | 246 int32_t ipc_database_id, |
247 int64_t old_version, | 247 int64_t old_version, |
248 int64_t new_version); | 248 int64_t new_version); |
249 | 249 |
250 // Reset cursor prefetch caches for all cursors except exception_cursor_id. | 250 // Reset cursor prefetch caches for all cursors except exception_cursor_id. |
251 void ResetCursorPrefetchCaches(int64_t transaction_id, | 251 void ResetCursorPrefetchCaches(int64_t transaction_id, |
252 int32_t ipc_exception_cursor_id); | 252 int32_t ipc_exception_cursor_id); |
253 | 253 |
254 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 254 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
255 | 255 |
256 // Maximum size (in bytes) of value/key pair allowed for put requests. Any | 256 // Maximum size (in bytes) of value/key pair allowed for put requests. Any |
257 // requests larger than this size will be rejected. | 257 // requests larger than this size will be rejected. |
258 // Used by unit tests to exercise behavior without allocating huge chunks | 258 // Used by unit tests to exercise behavior without allocating huge chunks |
(...skipping 15 matching lines...) Expand all Loading... |
274 std::map<int32_t, WebIDBCursorImpl*> cursors_; | 274 std::map<int32_t, WebIDBCursorImpl*> cursors_; |
275 | 275 |
276 std::map<int32_t, WebIDBDatabaseImpl*> databases_; | 276 std::map<int32_t, WebIDBDatabaseImpl*> databases_; |
277 | 277 |
278 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); | 278 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); |
279 }; | 279 }; |
280 | 280 |
281 } // namespace content | 281 } // namespace content |
282 | 282 |
283 #endif // CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ | 283 #endif // CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ |
OLD | NEW |