| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Message definition file, included multiple times, hence no include guard. | |
| 6 | |
| 7 #include <vector> | |
| 8 | |
| 9 #include "content/common/indexed_db_key.h" | |
| 10 #include "content/common/indexed_db_param_traits.h" | |
| 11 #include "content/public/common/serialized_script_value.h" | |
| 12 #include "ipc/ipc_message_macros.h" | |
| 13 #include "ipc/ipc_param_traits.h" | |
| 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebExceptionCode.h" | |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBObjectStore.h" | |
| 16 | |
| 17 #define IPC_MESSAGE_START IndexedDBMsgStart | |
| 18 | |
| 19 // Argument structures used in messages | |
| 20 | |
| 21 IPC_ENUM_TRAITS(WebKit::WebIDBObjectStore::PutMode) | |
| 22 | |
| 23 // Used to enumerate indexed databases. | |
| 24 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryGetDatabaseNames_Params) | |
| 25 // The response should have these ids. | |
| 26 IPC_STRUCT_MEMBER(int32, thread_id) | |
| 27 IPC_STRUCT_MEMBER(int32, response_id) | |
| 28 // The origin doing the initiating. | |
| 29 IPC_STRUCT_MEMBER(string16, origin) | |
| 30 IPC_STRUCT_END() | |
| 31 | |
| 32 // Used to open an indexed database. | |
| 33 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryOpen_Params) | |
| 34 // The response should have these ids. | |
| 35 IPC_STRUCT_MEMBER(int32, thread_id) | |
| 36 IPC_STRUCT_MEMBER(int32, response_id) | |
| 37 // The origin doing the initiating. | |
| 38 IPC_STRUCT_MEMBER(string16, origin) | |
| 39 // The name of the database. | |
| 40 IPC_STRUCT_MEMBER(string16, name) | |
| 41 IPC_STRUCT_END() | |
| 42 | |
| 43 // Used to delete an indexed database. | |
| 44 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryDeleteDatabase_Params) | |
| 45 // The response should have these ids. | |
| 46 IPC_STRUCT_MEMBER(int32, thread_id) | |
| 47 IPC_STRUCT_MEMBER(int32, response_id) | |
| 48 // The origin doing the initiating. | |
| 49 IPC_STRUCT_MEMBER(string16, origin) | |
| 50 // The name of the database. | |
| 51 IPC_STRUCT_MEMBER(string16, name) | |
| 52 IPC_STRUCT_END() | |
| 53 | |
| 54 // Used to create an object store. | |
| 55 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseCreateObjectStore_Params) | |
| 56 // The name of the object store. | |
| 57 IPC_STRUCT_MEMBER(string16, name) | |
| 58 // The keyPath of the object store. | |
| 59 IPC_STRUCT_MEMBER(NullableString16, key_path) | |
| 60 // Whether the object store created should have a key generator. | |
| 61 IPC_STRUCT_MEMBER(bool, auto_increment) | |
| 62 // The transaction this is associated with. | |
| 63 IPC_STRUCT_MEMBER(int32, transaction_id) | |
| 64 // The database the object store belongs to. | |
| 65 IPC_STRUCT_MEMBER(int32, idb_database_id) | |
| 66 IPC_STRUCT_END() | |
| 67 | |
| 68 // Used to open both cursors and object cursors in IndexedDB. | |
| 69 IPC_STRUCT_BEGIN(IndexedDBHostMsg_IndexOpenCursor_Params) | |
| 70 // The response should have these ids. | |
| 71 IPC_STRUCT_MEMBER(int32, thread_id) | |
| 72 IPC_STRUCT_MEMBER(int32, response_id) | |
| 73 // The serialized lower key. | |
| 74 IPC_STRUCT_MEMBER(IndexedDBKey, lower_key) | |
| 75 // The serialized upper key. | |
| 76 IPC_STRUCT_MEMBER(IndexedDBKey, upper_key) | |
| 77 // Is the lower bound open? | |
| 78 IPC_STRUCT_MEMBER(bool, lower_open) | |
| 79 // Is the upper bound open? | |
| 80 IPC_STRUCT_MEMBER(bool, upper_open) | |
| 81 // The direction of this cursor. | |
| 82 IPC_STRUCT_MEMBER(int32, direction) | |
| 83 // The index the index belongs to. | |
| 84 IPC_STRUCT_MEMBER(int32, idb_index_id) | |
| 85 // The transaction this request belongs to. | |
| 86 IPC_STRUCT_MEMBER(int, transaction_id) | |
| 87 IPC_STRUCT_END() | |
| 88 | |
| 89 // Used for counting values within an index IndexedDB. | |
| 90 IPC_STRUCT_BEGIN(IndexedDBHostMsg_IndexCount_Params) | |
| 91 // The response should have these ids. | |
| 92 IPC_STRUCT_MEMBER(int32, thread_id) | |
| 93 IPC_STRUCT_MEMBER(int32, response_id) | |
| 94 // The serialized lower key. | |
| 95 IPC_STRUCT_MEMBER(IndexedDBKey, lower_key) | |
| 96 // The serialized upper key. | |
| 97 IPC_STRUCT_MEMBER(IndexedDBKey, upper_key) | |
| 98 // Is the lower bound open? | |
| 99 IPC_STRUCT_MEMBER(bool, lower_open) | |
| 100 // Is the upper bound open? | |
| 101 IPC_STRUCT_MEMBER(bool, upper_open) | |
| 102 // The index the index belongs to. | |
| 103 IPC_STRUCT_MEMBER(int32, idb_index_id) | |
| 104 // The transaction this request belongs to. | |
| 105 IPC_STRUCT_MEMBER(int, transaction_id) | |
| 106 IPC_STRUCT_END() | |
| 107 | |
| 108 // Used to set a value in an object store. | |
| 109 IPC_STRUCT_BEGIN(IndexedDBHostMsg_ObjectStorePut_Params) | |
| 110 // The object store's id. | |
| 111 IPC_STRUCT_MEMBER(int32, idb_object_store_id) | |
| 112 // The id any response should contain. | |
| 113 IPC_STRUCT_MEMBER(int32, thread_id) | |
| 114 IPC_STRUCT_MEMBER(int32, response_id) | |
| 115 // The value to set. | |
| 116 IPC_STRUCT_MEMBER(content::SerializedScriptValue, serialized_value) | |
| 117 // The key to set it on (may not be "valid"/set in some cases). | |
| 118 IPC_STRUCT_MEMBER(IndexedDBKey, key) | |
| 119 // Whether this is an add or a put. | |
| 120 IPC_STRUCT_MEMBER(WebKit::WebIDBObjectStore::PutMode, put_mode) | |
| 121 // The transaction it's associated with. | |
| 122 IPC_STRUCT_MEMBER(int, transaction_id) | |
| 123 IPC_STRUCT_END() | |
| 124 | |
| 125 // Used to create an index. | |
| 126 IPC_STRUCT_BEGIN(IndexedDBHostMsg_ObjectStoreCreateIndex_Params) | |
| 127 // The name of the index. | |
| 128 IPC_STRUCT_MEMBER(string16, name) | |
| 129 // The keyPath of the index. | |
| 130 IPC_STRUCT_MEMBER(NullableString16, key_path) | |
| 131 // Whether the index created has unique keys. | |
| 132 IPC_STRUCT_MEMBER(bool, unique) | |
| 133 // Whether the index created produces keys for each array entry. | |
| 134 IPC_STRUCT_MEMBER(bool, multi_entry) | |
| 135 // The transaction this is associated with. | |
| 136 IPC_STRUCT_MEMBER(int32, transaction_id) | |
| 137 // The object store the index belongs to. | |
| 138 IPC_STRUCT_MEMBER(int32, idb_object_store_id) | |
| 139 IPC_STRUCT_END() | |
| 140 | |
| 141 // Used to open an IndexedDB cursor. | |
| 142 IPC_STRUCT_BEGIN(IndexedDBHostMsg_ObjectStoreOpenCursor_Params) | |
| 143 // The response should have these ids. | |
| 144 IPC_STRUCT_MEMBER(int32, thread_id) | |
| 145 IPC_STRUCT_MEMBER(int32, response_id) | |
| 146 // The serialized lower key. | |
| 147 IPC_STRUCT_MEMBER(IndexedDBKey, lower_key) | |
| 148 // The serialized upper key. | |
| 149 IPC_STRUCT_MEMBER(IndexedDBKey, upper_key) | |
| 150 // Is the lower bound open? | |
| 151 IPC_STRUCT_MEMBER(bool, lower_open) | |
| 152 // Is the upper bound open? | |
| 153 IPC_STRUCT_MEMBER(bool, upper_open) | |
| 154 // The direction of this cursor. | |
| 155 IPC_STRUCT_MEMBER(int32, direction) | |
| 156 // The object store the cursor belongs to. | |
| 157 IPC_STRUCT_MEMBER(int32, idb_object_store_id) | |
| 158 // The transaction this request belongs to. | |
| 159 IPC_STRUCT_MEMBER(int, transaction_id) | |
| 160 IPC_STRUCT_END() | |
| 161 | |
| 162 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessIDBCursor_Params) | |
| 163 IPC_STRUCT_MEMBER(int32, thread_id) | |
| 164 IPC_STRUCT_MEMBER(int32, response_id) | |
| 165 IPC_STRUCT_MEMBER(int32, cursor_id) | |
| 166 IPC_STRUCT_MEMBER(IndexedDBKey, key) | |
| 167 IPC_STRUCT_MEMBER(IndexedDBKey, primary_key) | |
| 168 IPC_STRUCT_MEMBER(content::SerializedScriptValue, serialized_value) | |
| 169 IPC_STRUCT_END() | |
| 170 | |
| 171 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorContinue_Params) | |
| 172 IPC_STRUCT_MEMBER(int32, thread_id) | |
| 173 IPC_STRUCT_MEMBER(int32, response_id) | |
| 174 IPC_STRUCT_MEMBER(int32, cursor_id) | |
| 175 IPC_STRUCT_MEMBER(IndexedDBKey, key) | |
| 176 IPC_STRUCT_MEMBER(IndexedDBKey, primary_key) | |
| 177 IPC_STRUCT_MEMBER(content::SerializedScriptValue, serialized_value) | |
| 178 IPC_STRUCT_END() | |
| 179 | |
| 180 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params) | |
| 181 IPC_STRUCT_MEMBER(int32, thread_id) | |
| 182 IPC_STRUCT_MEMBER(int32, response_id) | |
| 183 IPC_STRUCT_MEMBER(int32, cursor_id) | |
| 184 IPC_STRUCT_MEMBER(std::vector<IndexedDBKey>, keys) | |
| 185 IPC_STRUCT_MEMBER(std::vector<IndexedDBKey>, primary_keys) | |
| 186 IPC_STRUCT_MEMBER(std::vector<content::SerializedScriptValue>, values) | |
| 187 IPC_STRUCT_END() | |
| 188 | |
| 189 | |
| 190 // Used to count within an IndexedDB object store. | |
| 191 IPC_STRUCT_BEGIN(IndexedDBHostMsg_ObjectStoreCount_Params) | |
| 192 // The response should have these ids. | |
| 193 IPC_STRUCT_MEMBER(int32, thread_id) | |
| 194 IPC_STRUCT_MEMBER(int32, response_id) | |
| 195 // The serialized lower key. | |
| 196 IPC_STRUCT_MEMBER(IndexedDBKey, lower_key) | |
| 197 // The serialized upper key. | |
| 198 IPC_STRUCT_MEMBER(IndexedDBKey, upper_key) | |
| 199 // Is the lower bound open? | |
| 200 IPC_STRUCT_MEMBER(bool, lower_open) | |
| 201 // Is the upper bound open? | |
| 202 IPC_STRUCT_MEMBER(bool, upper_open) | |
| 203 // The object store the cursor belongs to. | |
| 204 IPC_STRUCT_MEMBER(int32, idb_object_store_id) | |
| 205 // The transaction this request belongs to. | |
| 206 IPC_STRUCT_MEMBER(int, transaction_id) | |
| 207 IPC_STRUCT_END() | |
| 208 | |
| 209 // Indexed DB messages sent from the browser to the renderer. | |
| 210 | |
| 211 // The thread_id needs to be the first parameter in these messages. In the IO | |
| 212 // thread on the renderer/client process, an IDB message filter assumes the | |
| 213 // thread_id is the first int. | |
| 214 | |
| 215 // IDBCallback message handlers. | |
| 216 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessIDBCursor, | |
| 217 IndexedDBMsg_CallbacksSuccessIDBCursor_Params) | |
| 218 | |
| 219 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorContinue, | |
| 220 IndexedDBMsg_CallbacksSuccessCursorContinue_Params) | |
| 221 | |
| 222 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorPrefetch, | |
| 223 IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params) | |
| 224 | |
| 225 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIDBDatabase, | |
| 226 int32 /* thread_id */, | |
| 227 int32 /* response_id */, | |
| 228 int32 /* idb_database_id */) | |
| 229 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIndexedDBKey, | |
| 230 int32 /* thread_id */, | |
| 231 int32 /* response_id */, | |
| 232 IndexedDBKey /* indexed_db_key */) | |
| 233 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIDBTransaction, | |
| 234 int32 /* thread_id */, | |
| 235 int32 /* response_id */, | |
| 236 int32 /* idb_transaction_id */) | |
| 237 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessSerializedScriptValue, | |
| 238 int32 /* thread_id */, | |
| 239 int32 /* response_id */, | |
| 240 content::SerializedScriptValue /* value */) | |
| 241 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessStringList, | |
| 242 int32 /* thread_id */, | |
| 243 int32 /* response_id */, | |
| 244 std::vector<string16> /* dom_string_list */) | |
| 245 IPC_MESSAGE_CONTROL4(IndexedDBMsg_CallbacksError, | |
| 246 int32 /* thread_id */, | |
| 247 int32 /* response_id */, | |
| 248 int /* code */, | |
| 249 string16 /* message */) | |
| 250 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksBlocked, | |
| 251 int32 /* thread_id */, | |
| 252 int32 /* response_id */) | |
| 253 | |
| 254 // IDBTransactionCallback message handlers. | |
| 255 IPC_MESSAGE_CONTROL2(IndexedDBMsg_TransactionCallbacksAbort, | |
| 256 int32 /* thread_id */, | |
| 257 int32 /* transaction_id */) | |
| 258 IPC_MESSAGE_CONTROL2(IndexedDBMsg_TransactionCallbacksComplete, | |
| 259 int32 /* thread_id */, | |
| 260 int32 /* transaction_id */) | |
| 261 | |
| 262 IPC_MESSAGE_CONTROL3(IndexedDBMsg_DatabaseCallbacksVersionChange, | |
| 263 int32, /* thread_id */ | |
| 264 int32, /* database_id */ | |
| 265 string16) /* new_version */ | |
| 266 | |
| 267 // Indexed DB messages sent from the renderer to the browser. | |
| 268 | |
| 269 // WebIDBCursor::direction() message. | |
| 270 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_CursorDirection, | |
| 271 int32, /* idb_cursor_id */ | |
| 272 int32 /* direction */) | |
| 273 | |
| 274 // WebIDBCursor::update() message. | |
| 275 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_CursorUpdate, | |
| 276 int32, /* idb_cursor_id */ | |
| 277 int32, /* thread_id */ | |
| 278 int32, /* response_id */ | |
| 279 content::SerializedScriptValue, /* value */ | |
| 280 WebKit::WebExceptionCode /* ec */) | |
| 281 | |
| 282 // WebIDBCursor::continue() message. | |
| 283 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_CursorContinue, | |
| 284 int32, /* idb_cursor_id */ | |
| 285 int32, /* thread_id */ | |
| 286 int32, /* response_id */ | |
| 287 IndexedDBKey, /* key */ | |
| 288 WebKit::WebExceptionCode /* ec */) | |
| 289 | |
| 290 // WebIDBCursor::prefetchContinue() message. | |
| 291 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_CursorPrefetch, | |
| 292 int32, /* idb_cursor_id */ | |
| 293 int32, /* thread_id */ | |
| 294 int32, /* response_id */ | |
| 295 int32, /* n */ | |
| 296 WebKit::WebExceptionCode /* ec */) | |
| 297 | |
| 298 // WebIDBCursor::prefetchReset() message. | |
| 299 IPC_SYNC_MESSAGE_CONTROL3_0(IndexedDBHostMsg_CursorPrefetchReset, | |
| 300 int32, /* idb_cursor_id */ | |
| 301 int32, /* used_prefetches */ | |
| 302 int32 /* used_prefetches */) | |
| 303 | |
| 304 // WebIDBCursor::remove() message. | |
| 305 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_CursorDelete, | |
| 306 int32, /* idb_cursor_id */ | |
| 307 int32, /* thread_id */ | |
| 308 int32, /* response_id */ | |
| 309 WebKit::WebExceptionCode /* ec */) | |
| 310 | |
| 311 // WebIDBFactory::getDatabaseNames() message. | |
| 312 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryGetDatabaseNames, | |
| 313 IndexedDBHostMsg_FactoryGetDatabaseNames_Params) | |
| 314 | |
| 315 // WebIDBFactory::open() message. | |
| 316 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryOpen, | |
| 317 IndexedDBHostMsg_FactoryOpen_Params) | |
| 318 | |
| 319 // WebIDBFactory::deleteDatabase() message. | |
| 320 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryDeleteDatabase, | |
| 321 IndexedDBHostMsg_FactoryDeleteDatabase_Params) | |
| 322 | |
| 323 // WebIDBDatabase::name() message. | |
| 324 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_DatabaseName, | |
| 325 int32, /* idb_database_id */ | |
| 326 string16 /* name */) | |
| 327 | |
| 328 // WebIDBDatabase::version() message. | |
| 329 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_DatabaseVersion, | |
| 330 int32, /* idb_database_id */ | |
| 331 string16 /* version */) | |
| 332 | |
| 333 // WebIDBDatabase::objectStoreNames() message. | |
| 334 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_DatabaseObjectStoreNames, | |
| 335 int32, /* idb_database_id */ | |
| 336 std::vector<string16> /* objectStoreNames */) | |
| 337 | |
| 338 // WebIDBDatabase::createObjectStore() message. | |
| 339 IPC_SYNC_MESSAGE_CONTROL1_2(IndexedDBHostMsg_DatabaseCreateObjectStore, | |
| 340 IndexedDBHostMsg_DatabaseCreateObjectStore_Params, | |
| 341 int32, /* object_store_id */ | |
| 342 WebKit::WebExceptionCode /* ec */) | |
| 343 | |
| 344 // WebIDBDatabase::removeObjectStore() message. | |
| 345 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_DatabaseDeleteObjectStore, | |
| 346 int32, /* idb_database_id */ | |
| 347 string16, /* name */ | |
| 348 int32, /* transaction_id */ | |
| 349 WebKit::WebExceptionCode /* ec */) | |
| 350 | |
| 351 // WebIDBDatabase::setVersion() message. | |
| 352 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_DatabaseSetVersion, | |
| 353 int32, /* idb_database_id */ | |
| 354 int32, /* thread_id */ | |
| 355 int32, /* response_id */ | |
| 356 string16, /* version */ | |
| 357 WebKit::WebExceptionCode /* ec */) | |
| 358 | |
| 359 // WebIDBDatabase::transaction() message. | |
| 360 // TODO: make this message async. Have the renderer create a | |
| 361 // temporary ID and keep a map in the browser process of real | |
| 362 // IDs to temporary IDs. We can then update the transaction | |
| 363 // to its real ID asynchronously. | |
| 364 IPC_SYNC_MESSAGE_CONTROL4_2(IndexedDBHostMsg_DatabaseTransaction, | |
| 365 int32, /* thread_id */ | |
| 366 int32, /* idb_database_id */ | |
| 367 std::vector<string16>, /* object_stores */ | |
| 368 int32, /* mode */ | |
| 369 int32, /* idb_transaction_id */ | |
| 370 WebKit::WebExceptionCode /* ec */) | |
| 371 | |
| 372 // WebIDBDatabase::open() message. | |
| 373 IPC_MESSAGE_CONTROL3(IndexedDBHostMsg_DatabaseOpen, | |
| 374 int32, /* idb_database_id */ | |
| 375 int32 /* thread_id */, | |
| 376 int32 /* response_id */) | |
| 377 | |
| 378 // WebIDBDatabase::close() message. | |
| 379 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseClose, | |
| 380 int32 /* idb_database_id */) | |
| 381 | |
| 382 // WebIDBDatabase::~WebIDBDatabase() message. | |
| 383 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseDestroyed, | |
| 384 int32 /* idb_database_id */) | |
| 385 | |
| 386 // WebIDBIndex::name() message. | |
| 387 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexName, | |
| 388 int32, /* idb_index_id */ | |
| 389 string16 /* name */) | |
| 390 | |
| 391 // WebIDBIndex::storeName() message. | |
| 392 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexStoreName, | |
| 393 int32, /* idb_index_id */ | |
| 394 string16 /* store_name */) | |
| 395 | |
| 396 // WebIDBIndex::keyPath() message. | |
| 397 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexKeyPath, | |
| 398 int32, /* idb_index_id */ | |
| 399 NullableString16 /* key_path */) | |
| 400 | |
| 401 // WebIDBIndex::unique() message. | |
| 402 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexUnique, | |
| 403 int32, /* idb_unique_id */ | |
| 404 bool /* unique */) | |
| 405 | |
| 406 // WebIDBIndex::openObjectCursor() message. | |
| 407 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexOpenObjectCursor, | |
| 408 IndexedDBHostMsg_IndexOpenCursor_Params, | |
| 409 WebKit::WebExceptionCode /* ec */) | |
| 410 | |
| 411 // WebIDBIndex::openKeyCursor() message. | |
| 412 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexOpenKeyCursor, | |
| 413 IndexedDBHostMsg_IndexOpenCursor_Params, | |
| 414 WebKit::WebExceptionCode /* ec */) | |
| 415 | |
| 416 // WebIDBIndex::count() message. | |
| 417 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexCount, | |
| 418 IndexedDBHostMsg_IndexCount_Params, | |
| 419 WebKit::WebExceptionCode /* ec */) | |
| 420 | |
| 421 // WebIDBIndex::getObject() message. | |
| 422 IPC_SYNC_MESSAGE_CONTROL5_1(IndexedDBHostMsg_IndexGetObject, | |
| 423 int32, /* idb_index_id */ | |
| 424 int32, /* thread_id */ | |
| 425 int32, /* response_id */ | |
| 426 IndexedDBKey, /* key */ | |
| 427 int32, /* transaction_id */ | |
| 428 WebKit::WebExceptionCode /* ec */) | |
| 429 | |
| 430 // WebIDBIndex::getKey() message. | |
| 431 IPC_SYNC_MESSAGE_CONTROL5_1(IndexedDBHostMsg_IndexGetKey, | |
| 432 int32, /* idb_index_id */ | |
| 433 int32, /* thread_id */ | |
| 434 int32, /* response_id */ | |
| 435 IndexedDBKey, /* key */ | |
| 436 int32, /* transaction_id */ | |
| 437 WebKit::WebExceptionCode /* ec */) | |
| 438 | |
| 439 // WebIDBIndex::~WebIDBIndex() message. | |
| 440 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_IndexDestroyed, | |
| 441 int32 /* idb_index_id */) | |
| 442 | |
| 443 // WebIDBObjectStore::name() message. | |
| 444 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreName, | |
| 445 int32, /* idb_object_store_id */ | |
| 446 string16 /* name */) | |
| 447 | |
| 448 // WebIDBObjectStore::keyPath() message. | |
| 449 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreKeyPath, | |
| 450 int32, /* idb_object_store_id */ | |
| 451 NullableString16 /* keyPath */) | |
| 452 | |
| 453 // WebIDBObjectStore::indexNames() message. | |
| 454 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreIndexNames, | |
| 455 int32, /* idb_object_store_id */ | |
| 456 std::vector<string16> /* index_names */) | |
| 457 | |
| 458 // WebIDBObjectStore::get() message. | |
| 459 IPC_SYNC_MESSAGE_CONTROL5_1(IndexedDBHostMsg_ObjectStoreGet, | |
| 460 int32, /* idb_object_store_id */ | |
| 461 int32, /* thread_id */ | |
| 462 int32, /* response_id */ | |
| 463 IndexedDBKey, /* key */ | |
| 464 int32, /* transaction_id */ | |
| 465 WebKit::WebExceptionCode /* ec */) | |
| 466 | |
| 467 // WebIDBObjectStore::put() message. | |
| 468 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStorePut, | |
| 469 IndexedDBHostMsg_ObjectStorePut_Params, | |
| 470 WebKit::WebExceptionCode /* ec */) | |
| 471 | |
| 472 // WebIDBObjectStore::delete() message. | |
| 473 IPC_SYNC_MESSAGE_CONTROL5_1(IndexedDBHostMsg_ObjectStoreDelete, | |
| 474 int32, /* idb_object_store_id */ | |
| 475 int32, /* thread_id */ | |
| 476 int32, /* response_id */ | |
| 477 IndexedDBKey, /* key */ | |
| 478 int32, /* transaction_id */ | |
| 479 WebKit::WebExceptionCode /* ec */) | |
| 480 | |
| 481 // WebIDBObjectStore::clear() message. | |
| 482 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_ObjectStoreClear, | |
| 483 int32, /* idb_object_store_id */ | |
| 484 int32, /* thread_id */ | |
| 485 int32, /* response_id */ | |
| 486 int32, /* transaction_id */ | |
| 487 WebKit::WebExceptionCode /* ec */) | |
| 488 | |
| 489 // WebIDBObjectStore::createIndex() message. | |
| 490 IPC_SYNC_MESSAGE_CONTROL1_2(IndexedDBHostMsg_ObjectStoreCreateIndex, | |
| 491 IndexedDBHostMsg_ObjectStoreCreateIndex_Params, | |
| 492 int32, /* index_id */ | |
| 493 WebKit::WebExceptionCode /* ec */) | |
| 494 | |
| 495 // WebIDBObjectStore::index() message. | |
| 496 IPC_SYNC_MESSAGE_CONTROL2_2(IndexedDBHostMsg_ObjectStoreIndex, | |
| 497 int32, /* idb_object_store_id */ | |
| 498 string16, /* name */ | |
| 499 int32, /* idb_index_id */ | |
| 500 WebKit::WebExceptionCode /* ec */) | |
| 501 | |
| 502 // WebIDBObjectStore::deleteIndex() message. | |
| 503 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_ObjectStoreDeleteIndex, | |
| 504 int32, /* idb_object_store_id */ | |
| 505 string16, /* name */ | |
| 506 int32, /* transaction_id */ | |
| 507 WebKit::WebExceptionCode /* ec */) | |
| 508 | |
| 509 // WebIDBObjectStore::openCursor() message. | |
| 510 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreOpenCursor, | |
| 511 IndexedDBHostMsg_ObjectStoreOpenCursor_Params, | |
| 512 WebKit::WebExceptionCode /* ec */) | |
| 513 | |
| 514 // WebIDBObjectStore::count() message. | |
| 515 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreCount, | |
| 516 IndexedDBHostMsg_ObjectStoreCount_Params, | |
| 517 WebKit::WebExceptionCode /* ec */) | |
| 518 | |
| 519 // WebIDBObjectStore::~WebIDBObjectStore() message. | |
| 520 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_ObjectStoreDestroyed, | |
| 521 int32 /* idb_object_store_id */) | |
| 522 | |
| 523 // WebIDBDatabase::~WebIDBCursor() message. | |
| 524 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed, | |
| 525 int32 /* idb_cursor_id */) | |
| 526 | |
| 527 // IDBTransaction::ObjectStore message. | |
| 528 IPC_SYNC_MESSAGE_CONTROL2_2(IndexedDBHostMsg_TransactionObjectStore, | |
| 529 int32, /* transaction_id */ | |
| 530 string16, /* name */ | |
| 531 int32, /* object_store_id */ | |
| 532 WebKit::WebExceptionCode /* ec */) | |
| 533 | |
| 534 // WebIDBTransaction::mode() message. | |
| 535 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_TransactionMode, | |
| 536 int32, /* idb_transaction_id */ | |
| 537 int /* mode */) | |
| 538 | |
| 539 // WebIDBTransaction::abort() message. | |
| 540 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort, | |
| 541 int32 /* idb_transaction_id */) | |
| 542 | |
| 543 // IDBTransaction::DidCompleteTaskEvents() message. | |
| 544 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, | |
| 545 int32 /* idb_transaction_id */) | |
| 546 | |
| 547 // WebIDBTransaction::~WebIDBTransaction() message. | |
| 548 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, | |
| 549 int32 /* idb_transaction_id */) | |
| OLD | NEW |