| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_key.h" | 9 #include "content/common/indexed_db_key.h" |
| 10 #include "content/common/indexed_db_param_traits.h" | 10 #include "content/common/indexed_db_param_traits.h" |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 IPC_STRUCT_MEMBER(int32, direction) | 124 IPC_STRUCT_MEMBER(int32, direction) |
| 125 // The object store the cursor belongs to. | 125 // The object store the cursor belongs to. |
| 126 IPC_STRUCT_MEMBER(int32, idb_object_store_id) | 126 IPC_STRUCT_MEMBER(int32, idb_object_store_id) |
| 127 // The transaction this request belongs to. | 127 // The transaction this request belongs to. |
| 128 IPC_STRUCT_MEMBER(int, transaction_id) | 128 IPC_STRUCT_MEMBER(int, transaction_id) |
| 129 IPC_STRUCT_END() | 129 IPC_STRUCT_END() |
| 130 | 130 |
| 131 // Indexed DB messages sent from the browser to the renderer. | 131 // Indexed DB messages sent from the browser to the renderer. |
| 132 | 132 |
| 133 // IDBCallback message handlers. | 133 // IDBCallback message handlers. |
| 134 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIDBCursor, | 134 IPC_MESSAGE_CONTROL5(IndexedDBMsg_CallbacksSuccessIDBCursor, |
| 135 int32 /* response_id */, | 135 int32 /* response_id */, |
| 136 int32 /* cursor_id */) | 136 int32 /* cursor_id */, |
| 137 IndexedDBKey /* key */, |
| 138 IndexedDBKey /* primary key */, |
| 139 SerializedScriptValue /* script_value */) |
| 137 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIDBDatabase, | 140 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIDBDatabase, |
| 138 int32 /* response_id */, | 141 int32 /* response_id */, |
| 139 int32 /* idb_database_id */) | 142 int32 /* idb_database_id */) |
| 140 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIndexedDBKey, | 143 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIndexedDBKey, |
| 141 int32 /* response_id */, | 144 int32 /* response_id */, |
| 142 IndexedDBKey /* indexed_db_key */) | 145 IndexedDBKey /* indexed_db_key */) |
| 143 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIDBTransaction, | 146 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIDBTransaction, |
| 144 int32 /* response_id */, | 147 int32 /* response_id */, |
| 145 int32 /* idb_transaction_id */) | 148 int32 /* idb_transaction_id */) |
| 146 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessSerializedScriptValue, | 149 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessSerializedScriptValue, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 163 int32, /* database_id */ | 166 int32, /* database_id */ |
| 164 string16) /* new_version */ | 167 string16) /* new_version */ |
| 165 | 168 |
| 166 // Indexed DB messages sent from the renderer to the browser. | 169 // Indexed DB messages sent from the renderer to the browser. |
| 167 | 170 |
| 168 // WebIDBCursor::direction() message. | 171 // WebIDBCursor::direction() message. |
| 169 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_CursorDirection, | 172 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_CursorDirection, |
| 170 int32, /* idb_cursor_id */ | 173 int32, /* idb_cursor_id */ |
| 171 int32 /* direction */) | 174 int32 /* direction */) |
| 172 | 175 |
| 173 // WebIDBCursor::key() message. | |
| 174 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_CursorKey, | |
| 175 int32, /* idb_cursor_id */ | |
| 176 IndexedDBKey /* key */) | |
| 177 | |
| 178 // WebIDBCursor::primaryKey() message. | |
| 179 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_CursorPrimaryKey, | |
| 180 int32, /* idb_cursor_id */ | |
| 181 IndexedDBKey /* primary_key */) | |
| 182 | |
| 183 // WebIDBCursor::value() message. | |
| 184 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_CursorValue, | |
| 185 int32, /* idb_cursor_id */ | |
| 186 SerializedScriptValue /* script_value */) | |
| 187 | |
| 188 // WebIDBCursor::update() message. | 176 // WebIDBCursor::update() message. |
| 189 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_CursorUpdate, | 177 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_CursorUpdate, |
| 190 int32, /* idb_cursor_id */ | 178 int32, /* idb_cursor_id */ |
| 191 int32, /* response_id */ | 179 int32, /* response_id */ |
| 192 SerializedScriptValue, /* value */ | 180 SerializedScriptValue, /* value */ |
| 193 WebKit::WebExceptionCode /* ec */) | 181 WebKit::WebExceptionCode /* ec */) |
| 194 | 182 |
| 195 // WebIDBCursor::continue() message. | 183 // WebIDBCursor::continue() message. |
| 196 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_CursorContinue, | 184 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_CursorContinue, |
| 197 int32, /* idb_cursor_id */ | 185 int32, /* idb_cursor_id */ |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort, | 403 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort, |
| 416 int32 /* idb_transaction_id */) | 404 int32 /* idb_transaction_id */) |
| 417 | 405 |
| 418 // IDBTransaction::DidCompleteTaskEvents() message. | 406 // IDBTransaction::DidCompleteTaskEvents() message. |
| 419 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, | 407 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, |
| 420 int32 /* idb_transaction_id */) | 408 int32 /* idb_transaction_id */) |
| 421 | 409 |
| 422 // WebIDBTransaction::~WebIDBTransaction() message. | 410 // WebIDBTransaction::~WebIDBTransaction() message. |
| 423 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, | 411 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, |
| 424 int32 /* idb_transaction_id */) | 412 int32 /* idb_transaction_id */) |
| OLD | NEW |