| 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" |
| 11 #include "content/common/serialized_script_value.h" | 11 #include "content/common/serialized_script_value.h" |
| 12 #include "ipc/ipc_message_macros.h" | 12 #include "ipc/ipc_message_macros.h" |
| 13 #include "ipc/ipc_param_traits.h" | 13 #include "ipc/ipc_param_traits.h" |
| 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebExceptionCode.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebExceptionCode.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBObjectStore.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBObjectStore.h" |
| 16 | 16 |
| 17 #define IPC_MESSAGE_START IndexedDBMsgStart | 17 #define IPC_MESSAGE_START IndexedDBMsgStart |
| 18 | 18 |
| 19 // Argument structures used in messages | 19 // Argument structures used in messages |
| 20 | 20 |
| 21 IPC_ENUM_TRAITS(WebKit::WebIDBObjectStore::PutMode) | 21 IPC_ENUM_TRAITS(WebKit::WebIDBObjectStore::PutMode) |
| 22 | 22 |
| 23 // Used to enumerate indexed databases. |
| 24 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryGetDatabaseNames_Params) |
| 25 // The routing ID of the view initiating the open. |
| 26 IPC_STRUCT_MEMBER(int32, routing_id) |
| 27 // The response should have this id. |
| 28 IPC_STRUCT_MEMBER(int32, response_id) |
| 29 // The origin doing the initiating. |
| 30 IPC_STRUCT_MEMBER(string16, origin) |
| 31 IPC_STRUCT_END() |
| 32 |
| 23 // Used to open an indexed database. | 33 // Used to open an indexed database. |
| 24 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryOpen_Params) | 34 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryOpen_Params) |
| 25 // The routing ID of the view initiating the open. | 35 // The routing ID of the view initiating the open. |
| 26 IPC_STRUCT_MEMBER(int32, routing_id) | 36 IPC_STRUCT_MEMBER(int32, routing_id) |
| 27 // The response should have this id. | 37 // The response should have this id. |
| 28 IPC_STRUCT_MEMBER(int32, response_id) | 38 IPC_STRUCT_MEMBER(int32, response_id) |
| 29 // The origin doing the initiating. | 39 // The origin doing the initiating. |
| 30 IPC_STRUCT_MEMBER(string16, origin) | 40 IPC_STRUCT_MEMBER(string16, origin) |
| 31 // The name of the database. | 41 // The name of the database. |
| 32 IPC_STRUCT_MEMBER(string16, name) | 42 IPC_STRUCT_MEMBER(string16, name) |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 int32 /* idb_database_id */) | 149 int32 /* idb_database_id */) |
| 140 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIndexedDBKey, | 150 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIndexedDBKey, |
| 141 int32 /* response_id */, | 151 int32 /* response_id */, |
| 142 IndexedDBKey /* indexed_db_key */) | 152 IndexedDBKey /* indexed_db_key */) |
| 143 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIDBTransaction, | 153 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIDBTransaction, |
| 144 int32 /* response_id */, | 154 int32 /* response_id */, |
| 145 int32 /* idb_transaction_id */) | 155 int32 /* idb_transaction_id */) |
| 146 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessSerializedScriptValue, | 156 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessSerializedScriptValue, |
| 147 int32 /* response_id */, | 157 int32 /* response_id */, |
| 148 SerializedScriptValue /* serialized_script_value */) | 158 SerializedScriptValue /* serialized_script_value */) |
| 159 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessStringList, |
| 160 int32 /* response_id */, |
| 161 std::vector<string16> /* dom_string_list */) |
| 149 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksError, | 162 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksError, |
| 150 int32 /* response_id */, | 163 int32 /* response_id */, |
| 151 int /* code */, | 164 int /* code */, |
| 152 string16 /* message */) | 165 string16 /* message */) |
| 153 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksBlocked, | 166 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksBlocked, |
| 154 int32 /* response_id */) | 167 int32 /* response_id */) |
| 155 | 168 |
| 156 // IDBTransactionCallback message handlers. | 169 // IDBTransactionCallback message handlers. |
| 157 IPC_MESSAGE_CONTROL1(IndexedDBMsg_TransactionCallbacksAbort, | 170 IPC_MESSAGE_CONTROL1(IndexedDBMsg_TransactionCallbacksAbort, |
| 158 int32 /* transaction_id */) | 171 int32 /* transaction_id */) |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 int32, /* response_id */ | 211 int32, /* response_id */ |
| 199 IndexedDBKey, /* key */ | 212 IndexedDBKey, /* key */ |
| 200 WebKit::WebExceptionCode /* ec */) | 213 WebKit::WebExceptionCode /* ec */) |
| 201 | 214 |
| 202 // WebIDBCursor::remove() message. | 215 // WebIDBCursor::remove() message. |
| 203 IPC_SYNC_MESSAGE_CONTROL2_1(IndexedDBHostMsg_CursorDelete, | 216 IPC_SYNC_MESSAGE_CONTROL2_1(IndexedDBHostMsg_CursorDelete, |
| 204 int32, /* idb_cursor_id */ | 217 int32, /* idb_cursor_id */ |
| 205 int32, /* response_id */ | 218 int32, /* response_id */ |
| 206 WebKit::WebExceptionCode /* ec */) | 219 WebKit::WebExceptionCode /* ec */) |
| 207 | 220 |
| 221 // WebIDBFactory::getDatabaseNames() message. |
| 222 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryGetDatabaseNames, |
| 223 IndexedDBHostMsg_FactoryGetDatabaseNames_Params) |
| 224 |
| 208 // WebIDBFactory::open() message. | 225 // WebIDBFactory::open() message. |
| 209 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryOpen, | 226 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryOpen, |
| 210 IndexedDBHostMsg_FactoryOpen_Params) | 227 IndexedDBHostMsg_FactoryOpen_Params) |
| 211 | 228 |
| 212 // WebIDBFactory::deleteDatabase() message. | 229 // WebIDBFactory::deleteDatabase() message. |
| 213 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryDeleteDatabase, | 230 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryDeleteDatabase, |
| 214 IndexedDBHostMsg_FactoryDeleteDatabase_Params) | 231 IndexedDBHostMsg_FactoryDeleteDatabase_Params) |
| 215 | 232 |
| 216 // WebIDBDatabase::name() message. | 233 // WebIDBDatabase::name() message. |
| 217 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_DatabaseName, | 234 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_DatabaseName, |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort, | 432 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort, |
| 416 int32 /* idb_transaction_id */) | 433 int32 /* idb_transaction_id */) |
| 417 | 434 |
| 418 // IDBTransaction::DidCompleteTaskEvents() message. | 435 // IDBTransaction::DidCompleteTaskEvents() message. |
| 419 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, | 436 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, |
| 420 int32 /* idb_transaction_id */) | 437 int32 /* idb_transaction_id */) |
| 421 | 438 |
| 422 // WebIDBTransaction::~WebIDBTransaction() message. | 439 // WebIDBTransaction::~WebIDBTransaction() message. |
| 423 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, | 440 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, |
| 424 int32 /* idb_transaction_id */) | 441 int32 /* idb_transaction_id */) |
| OLD | NEW |