| 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 <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 const IndexedDBDatabaseMetadata& idb_metadata); | 64 const IndexedDBDatabaseMetadata& idb_metadata); |
| 65 | 65 |
| 66 void OnMessageReceived(const IPC::Message& msg); | 66 void OnMessageReceived(const IPC::Message& msg); |
| 67 bool Send(IPC::Message* msg); | 67 bool Send(IPC::Message* msg); |
| 68 | 68 |
| 69 void RequestIDBFactoryGetDatabaseNames( | 69 void RequestIDBFactoryGetDatabaseNames( |
| 70 blink::WebIDBCallbacks* callbacks, | 70 blink::WebIDBCallbacks* callbacks, |
| 71 const std::string& database_identifier); | 71 const std::string& database_identifier); |
| 72 | 72 |
| 73 void RequestIDBFactoryOpen( | 73 void RequestIDBFactoryOpen( |
| 74 const string16& name, | 74 const base::string16& name, |
| 75 int64 version, | 75 int64 version, |
| 76 int64 transaction_id, | 76 int64 transaction_id, |
| 77 blink::WebIDBCallbacks* callbacks, | 77 blink::WebIDBCallbacks* callbacks, |
| 78 blink::WebIDBDatabaseCallbacks* database_callbacks, | 78 blink::WebIDBDatabaseCallbacks* database_callbacks, |
| 79 const std::string& database_identifier); | 79 const std::string& database_identifier); |
| 80 | 80 |
| 81 void RequestIDBFactoryDeleteDatabase(const string16& name, | 81 void RequestIDBFactoryDeleteDatabase(const base::string16& name, |
| 82 blink::WebIDBCallbacks* callbacks, | 82 blink::WebIDBCallbacks* callbacks, |
| 83 const std::string& database_identifier); | 83 const std::string& database_identifier); |
| 84 | 84 |
| 85 void RequestIDBCursorAdvance(unsigned long count, | 85 void RequestIDBCursorAdvance(unsigned long count, |
| 86 blink::WebIDBCallbacks* callbacks_ptr, | 86 blink::WebIDBCallbacks* callbacks_ptr, |
| 87 int32 ipc_cursor_id); | 87 int32 ipc_cursor_id); |
| 88 | 88 |
| 89 virtual void RequestIDBCursorContinue(const IndexedDBKey& key, | 89 virtual void RequestIDBCursorContinue(const IndexedDBKey& key, |
| 90 const IndexedDBKey& primary_key, | 90 const IndexedDBKey& primary_key, |
| 91 blink::WebIDBCallbacks* callbacks_ptr, | 91 blink::WebIDBCallbacks* callbacks_ptr, |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 const IndexedDBKey& key); | 185 const IndexedDBKey& key); |
| 186 | 186 |
| 187 void OnSuccessOpenCursor( | 187 void OnSuccessOpenCursor( |
| 188 const IndexedDBMsg_CallbacksSuccessIDBCursor_Params& p); | 188 const IndexedDBMsg_CallbacksSuccessIDBCursor_Params& p); |
| 189 void OnSuccessCursorContinue( | 189 void OnSuccessCursorContinue( |
| 190 const IndexedDBMsg_CallbacksSuccessCursorContinue_Params& p); | 190 const IndexedDBMsg_CallbacksSuccessCursorContinue_Params& p); |
| 191 void OnSuccessCursorPrefetch( | 191 void OnSuccessCursorPrefetch( |
| 192 const IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params& p); | 192 const IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params& p); |
| 193 void OnSuccessStringList(int32 ipc_thread_id, | 193 void OnSuccessStringList(int32 ipc_thread_id, |
| 194 int32 ipc_callbacks_id, | 194 int32 ipc_callbacks_id, |
| 195 const std::vector<string16>& value); | 195 const std::vector<base::string16>& value); |
| 196 void OnSuccessValue(int32 ipc_thread_id, | 196 void OnSuccessValue(int32 ipc_thread_id, |
| 197 int32 ipc_callbacks_id, | 197 int32 ipc_callbacks_id, |
| 198 const std::string& value); | 198 const std::string& value); |
| 199 void OnSuccessValueWithKey(int32 ipc_thread_id, | 199 void OnSuccessValueWithKey(int32 ipc_thread_id, |
| 200 int32 ipc_callbacks_id, | 200 int32 ipc_callbacks_id, |
| 201 const std::string& value, | 201 const std::string& value, |
| 202 const IndexedDBKey& primary_key, | 202 const IndexedDBKey& primary_key, |
| 203 const IndexedDBKeyPath& key_path); | 203 const IndexedDBKeyPath& key_path); |
| 204 void OnSuccessInteger(int32 ipc_thread_id, | 204 void OnSuccessInteger(int32 ipc_thread_id, |
| 205 int32 ipc_callbacks_id, | 205 int32 ipc_callbacks_id, |
| 206 int64 value); | 206 int64 value); |
| 207 void OnSuccessUndefined(int32 ipc_thread_id, int32 ipc_callbacks_id); | 207 void OnSuccessUndefined(int32 ipc_thread_id, int32 ipc_callbacks_id); |
| 208 void OnError(int32 ipc_thread_id, | 208 void OnError(int32 ipc_thread_id, |
| 209 int32 ipc_callbacks_id, | 209 int32 ipc_callbacks_id, |
| 210 int code, | 210 int code, |
| 211 const string16& message); | 211 const base::string16& message); |
| 212 void OnIntBlocked(int32 ipc_thread_id, | 212 void OnIntBlocked(int32 ipc_thread_id, |
| 213 int32 ipc_callbacks_id, | 213 int32 ipc_callbacks_id, |
| 214 int64 existing_version); | 214 int64 existing_version); |
| 215 void OnUpgradeNeeded(const IndexedDBMsg_CallbacksUpgradeNeeded_Params& p); | 215 void OnUpgradeNeeded(const IndexedDBMsg_CallbacksUpgradeNeeded_Params& p); |
| 216 void OnAbort(int32 ipc_thread_id, | 216 void OnAbort(int32 ipc_thread_id, |
| 217 int32 ipc_database_id, | 217 int32 ipc_database_id, |
| 218 int64 transaction_id, | 218 int64 transaction_id, |
| 219 int code, | 219 int code, |
| 220 const string16& message); | 220 const base::string16& message); |
| 221 void OnComplete(int32 ipc_thread_id, | 221 void OnComplete(int32 ipc_thread_id, |
| 222 int32 ipc_database_id, | 222 int32 ipc_database_id, |
| 223 int64 transaction_id); | 223 int64 transaction_id); |
| 224 void OnForcedClose(int32 ipc_thread_id, int32 ipc_database_id); | 224 void OnForcedClose(int32 ipc_thread_id, int32 ipc_database_id); |
| 225 void OnIntVersionChange(int32 ipc_thread_id, | 225 void OnIntVersionChange(int32 ipc_thread_id, |
| 226 int32 ipc_database_id, | 226 int32 ipc_database_id, |
| 227 int64 old_version, | 227 int64 old_version, |
| 228 int64 new_version); | 228 int64 new_version); |
| 229 | 229 |
| 230 // Reset cursor prefetch caches for all cursors except exception_cursor_id. | 230 // Reset cursor prefetch caches for all cursors except exception_cursor_id. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 242 std::map<int32, RendererWebIDBCursorImpl*> cursors_; | 242 std::map<int32, RendererWebIDBCursorImpl*> cursors_; |
| 243 | 243 |
| 244 std::map<int32, RendererWebIDBDatabaseImpl*> databases_; | 244 std::map<int32, RendererWebIDBDatabaseImpl*> databases_; |
| 245 | 245 |
| 246 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); | 246 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); |
| 247 }; | 247 }; |
| 248 | 248 |
| 249 } // namespace content | 249 } // namespace content |
| 250 | 250 |
| 251 #endif // CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ | 251 #endif // CONTENT_CHILD_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ |
| OLD | NEW |