| 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_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ | 5 #ifndef CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ |
| 6 #define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ | 6 #define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 const IndexedDBDatabaseMetadata& metdata); | 243 const IndexedDBDatabaseMetadata& metdata); |
| 244 void OnAbort(int32 ipc_thread_id, | 244 void OnAbort(int32 ipc_thread_id, |
| 245 int32 ipc_database_id, | 245 int32 ipc_database_id, |
| 246 int64 transaction_id, | 246 int64 transaction_id, |
| 247 int code, | 247 int code, |
| 248 const string16& message); | 248 const string16& message); |
| 249 void OnComplete(int32 ipc_thread_id, | 249 void OnComplete(int32 ipc_thread_id, |
| 250 int32 ipc_database_id, | 250 int32 ipc_database_id, |
| 251 int64 transaction_id); | 251 int64 transaction_id); |
| 252 void OnForcedClose(int32 ipc_thread_id, int32 ipc_database_id); | 252 void OnForcedClose(int32 ipc_thread_id, int32 ipc_database_id); |
| 253 void OnVersionChange(int32 ipc_thread_id, | |
| 254 int32 ipc_database_id, | |
| 255 const string16& newVersion); | |
| 256 void OnIntVersionChange(int32 ipc_thread_id, | 253 void OnIntVersionChange(int32 ipc_thread_id, |
| 257 int32 ipc_database_id, | 254 int32 ipc_database_id, |
| 258 int64 old_version, | 255 int64 old_version, |
| 259 int64 new_version); | 256 int64 new_version); |
| 260 | 257 |
| 261 // Reset cursor prefetch caches for all cursors except exception_cursor_id. | 258 // Reset cursor prefetch caches for all cursors except exception_cursor_id. |
| 262 void ResetCursorPrefetchCaches(int32 ipc_exception_cursor_id = -1); | 259 void ResetCursorPrefetchCaches(int32 ipc_exception_cursor_id = -1); |
| 263 | 260 |
| 264 // Careful! WebIDBCallbacks wraps non-threadsafe data types. It must be | 261 // Careful! WebIDBCallbacks wraps non-threadsafe data types. It must be |
| 265 // destroyed and used on the same thread it was created on. | 262 // destroyed and used on the same thread it was created on. |
| 266 IDMap<WebKit::WebIDBCallbacks, IDMapOwnPointer> pending_callbacks_; | 263 IDMap<WebKit::WebIDBCallbacks, IDMapOwnPointer> pending_callbacks_; |
| 267 IDMap<WebKit::WebIDBDatabaseCallbacks, IDMapOwnPointer> | 264 IDMap<WebKit::WebIDBDatabaseCallbacks, IDMapOwnPointer> |
| 268 pending_database_callbacks_; | 265 pending_database_callbacks_; |
| 269 | 266 |
| 270 // Map from cursor id to RendererWebIDBCursorImpl. | 267 // Map from cursor id to RendererWebIDBCursorImpl. |
| 271 std::map<int32, RendererWebIDBCursorImpl*> cursors_; | 268 std::map<int32, RendererWebIDBCursorImpl*> cursors_; |
| 272 | 269 |
| 273 std::map<int32, RendererWebIDBDatabaseImpl*> databases_; | 270 std::map<int32, RendererWebIDBDatabaseImpl*> databases_; |
| 274 | 271 |
| 275 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); | 272 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); |
| 276 }; | 273 }; |
| 277 | 274 |
| 278 } // namespace content | 275 } // namespace content |
| 279 | 276 |
| 280 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ | 277 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ |
| OLD | NEW |