Chromium Code Reviews| 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 // Message definition file, included multiple times, hence no include guard. | 5 // Message definition file, included multiple times, hence no include guard. |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "content/common/indexed_db/indexed_db_key.h" | 9 #include "content/common/indexed_db/indexed_db_key.h" |
| 10 #include "content/common/indexed_db/indexed_db_key_range.h" | 10 #include "content/common/indexed_db/indexed_db_key_range.h" |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 162 | 162 |
| 163 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessIDBCursor_Params) | 163 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessIDBCursor_Params) |
| 164 IPC_STRUCT_MEMBER(int32, thread_id) | 164 IPC_STRUCT_MEMBER(int32, thread_id) |
| 165 IPC_STRUCT_MEMBER(int32, response_id) | 165 IPC_STRUCT_MEMBER(int32, response_id) |
| 166 IPC_STRUCT_MEMBER(int32, cursor_id) | 166 IPC_STRUCT_MEMBER(int32, cursor_id) |
| 167 IPC_STRUCT_MEMBER(IndexedDBKey, key) | 167 IPC_STRUCT_MEMBER(IndexedDBKey, key) |
| 168 IPC_STRUCT_MEMBER(IndexedDBKey, primary_key) | 168 IPC_STRUCT_MEMBER(IndexedDBKey, primary_key) |
| 169 IPC_STRUCT_MEMBER(content::SerializedScriptValue, serialized_value) | 169 IPC_STRUCT_MEMBER(content::SerializedScriptValue, serialized_value) |
| 170 IPC_STRUCT_END() | 170 IPC_STRUCT_END() |
| 171 | 171 |
| 172 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorAdvance_Params) | |
|
jsbell
2012/04/24 15:41:08
It looks like the params are identical between Cal
alecflett
2012/04/24 16:34:22
Its very possible - this was one of the areas that
| |
| 173 IPC_STRUCT_MEMBER(int32, thread_id) | |
| 174 IPC_STRUCT_MEMBER(int32, response_id) | |
| 175 IPC_STRUCT_MEMBER(int32, cursor_id) | |
| 176 IPC_STRUCT_MEMBER(IndexedDBKey, key) | |
| 177 IPC_STRUCT_MEMBER(IndexedDBKey, primary_key) | |
| 178 IPC_STRUCT_MEMBER(content::SerializedScriptValue, serialized_value) | |
| 179 IPC_STRUCT_END() | |
| 180 | |
| 172 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorContinue_Params) | 181 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorContinue_Params) |
| 173 IPC_STRUCT_MEMBER(int32, thread_id) | 182 IPC_STRUCT_MEMBER(int32, thread_id) |
| 174 IPC_STRUCT_MEMBER(int32, response_id) | 183 IPC_STRUCT_MEMBER(int32, response_id) |
| 175 IPC_STRUCT_MEMBER(int32, cursor_id) | 184 IPC_STRUCT_MEMBER(int32, cursor_id) |
| 176 IPC_STRUCT_MEMBER(IndexedDBKey, key) | 185 IPC_STRUCT_MEMBER(IndexedDBKey, key) |
| 177 IPC_STRUCT_MEMBER(IndexedDBKey, primary_key) | 186 IPC_STRUCT_MEMBER(IndexedDBKey, primary_key) |
| 178 IPC_STRUCT_MEMBER(content::SerializedScriptValue, serialized_value) | 187 IPC_STRUCT_MEMBER(content::SerializedScriptValue, serialized_value) |
| 179 IPC_STRUCT_END() | 188 IPC_STRUCT_END() |
| 180 | 189 |
| 181 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params) | 190 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params) |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 210 // Indexed DB messages sent from the browser to the renderer. | 219 // Indexed DB messages sent from the browser to the renderer. |
| 211 | 220 |
| 212 // The thread_id needs to be the first parameter in these messages. In the IO | 221 // The thread_id needs to be the first parameter in these messages. In the IO |
| 213 // thread on the renderer/client process, an IDB message filter assumes the | 222 // thread on the renderer/client process, an IDB message filter assumes the |
| 214 // thread_id is the first int. | 223 // thread_id is the first int. |
| 215 | 224 |
| 216 // IDBCallback message handlers. | 225 // IDBCallback message handlers. |
| 217 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessIDBCursor, | 226 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessIDBCursor, |
| 218 IndexedDBMsg_CallbacksSuccessIDBCursor_Params) | 227 IndexedDBMsg_CallbacksSuccessIDBCursor_Params) |
| 219 | 228 |
| 229 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorAdvance, | |
| 230 IndexedDBMsg_CallbacksSuccessCursorAdvance_Params) | |
| 231 | |
| 220 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorContinue, | 232 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorContinue, |
| 221 IndexedDBMsg_CallbacksSuccessCursorContinue_Params) | 233 IndexedDBMsg_CallbacksSuccessCursorContinue_Params) |
| 222 | 234 |
| 223 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorPrefetch, | 235 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorPrefetch, |
| 224 IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params) | 236 IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params) |
| 225 | 237 |
| 226 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIDBDatabase, | 238 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIDBDatabase, |
| 227 int32 /* thread_id */, | 239 int32 /* thread_id */, |
| 228 int32 /* response_id */, | 240 int32 /* response_id */, |
| 229 int32 /* idb_database_id */) | 241 int32 /* idb_database_id */) |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 273 int32 /* direction */) | 285 int32 /* direction */) |
| 274 | 286 |
| 275 // WebIDBCursor::update() message. | 287 // WebIDBCursor::update() message. |
| 276 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_CursorUpdate, | 288 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_CursorUpdate, |
| 277 int32, /* idb_cursor_id */ | 289 int32, /* idb_cursor_id */ |
| 278 int32, /* thread_id */ | 290 int32, /* thread_id */ |
| 279 int32, /* response_id */ | 291 int32, /* response_id */ |
| 280 content::SerializedScriptValue, /* value */ | 292 content::SerializedScriptValue, /* value */ |
| 281 WebKit::WebExceptionCode /* ec */) | 293 WebKit::WebExceptionCode /* ec */) |
| 282 | 294 |
| 295 // WebIDBCursor::advance() message. | |
| 296 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_CursorAdvance, | |
| 297 int32, /* idb_cursor_id */ | |
| 298 int32, /* thread_id */ | |
| 299 int32, /* response_id */ | |
| 300 unsigned long, /* count */ | |
| 301 WebKit::WebExceptionCode /* ec */) | |
| 302 | |
| 283 // WebIDBCursor::continue() message. | 303 // WebIDBCursor::continue() message. |
| 284 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_CursorContinue, | 304 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_CursorContinue, |
| 285 int32, /* idb_cursor_id */ | 305 int32, /* idb_cursor_id */ |
| 286 int32, /* thread_id */ | 306 int32, /* thread_id */ |
| 287 int32, /* response_id */ | 307 int32, /* response_id */ |
| 288 IndexedDBKey, /* key */ | 308 IndexedDBKey, /* key */ |
| 289 WebKit::WebExceptionCode /* ec */) | 309 WebKit::WebExceptionCode /* ec */) |
| 290 | 310 |
| 291 // WebIDBCursor::prefetchContinue() message. | 311 // WebIDBCursor::prefetchContinue() message. |
| 292 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_CursorPrefetch, | 312 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_CursorPrefetch, |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 555 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort, | 575 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort, |
| 556 int32 /* idb_transaction_id */) | 576 int32 /* idb_transaction_id */) |
| 557 | 577 |
| 558 // IDBTransaction::DidCompleteTaskEvents() message. | 578 // IDBTransaction::DidCompleteTaskEvents() message. |
| 559 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, | 579 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, |
| 560 int32 /* idb_transaction_id */) | 580 int32 /* idb_transaction_id */) |
| 561 | 581 |
| 562 // WebIDBTransaction::~WebIDBTransaction() message. | 582 // WebIDBTransaction::~WebIDBTransaction() message. |
| 563 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, | 583 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, |
| 564 int32 /* idb_transaction_id */) | 584 int32 /* idb_transaction_id */) |
| OLD | NEW |