Chromium Code Reviews| 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_FactoryDatabaseNames_Params) | |
| 25 // The routing ID of the view initiating the open. | |
| 26 IPC_STRUCT_MEMBER(int32, routing_id) | |
| 27 // The origin doing the initiating. | |
| 28 IPC_STRUCT_MEMBER(string16, origin) | |
| 29 IPC_STRUCT_END() | |
| 30 | |
| 23 // Used to open an indexed database. | 31 // Used to open an indexed database. |
| 24 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryOpen_Params) | 32 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryOpen_Params) |
| 25 // The routing ID of the view initiating the open. | 33 // The routing ID of the view initiating the open. |
| 26 IPC_STRUCT_MEMBER(int32, routing_id) | 34 IPC_STRUCT_MEMBER(int32, routing_id) |
| 27 // The response should have this id. | 35 // The response should have this id. |
| 28 IPC_STRUCT_MEMBER(int32, response_id) | 36 IPC_STRUCT_MEMBER(int32, response_id) |
| 29 // The origin doing the initiating. | 37 // The origin doing the initiating. |
| 30 IPC_STRUCT_MEMBER(string16, origin) | 38 IPC_STRUCT_MEMBER(string16, origin) |
| 31 // The name of the database. | 39 // The name of the database. |
| 32 IPC_STRUCT_MEMBER(string16, name) | 40 IPC_STRUCT_MEMBER(string16, name) |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 198 int32, /* response_id */ | 206 int32, /* response_id */ |
| 199 IndexedDBKey, /* key */ | 207 IndexedDBKey, /* key */ |
| 200 WebKit::WebExceptionCode /* ec */) | 208 WebKit::WebExceptionCode /* ec */) |
| 201 | 209 |
| 202 // WebIDBCursor::remove() message. | 210 // WebIDBCursor::remove() message. |
| 203 IPC_SYNC_MESSAGE_CONTROL2_1(IndexedDBHostMsg_CursorDelete, | 211 IPC_SYNC_MESSAGE_CONTROL2_1(IndexedDBHostMsg_CursorDelete, |
| 204 int32, /* idb_cursor_id */ | 212 int32, /* idb_cursor_id */ |
| 205 int32, /* response_id */ | 213 int32, /* response_id */ |
| 206 WebKit::WebExceptionCode /* ec */) | 214 WebKit::WebExceptionCode /* ec */) |
| 207 | 215 |
| 216 // WebIDBFactory::databaseNames() message. | |
| 217 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_FactoryDatabaseNames, | |
|
dgrogan
2011/09/14 01:25:20
This needs to be async, which will obviously compl
| |
| 218 IndexedDBHostMsg_FactoryDatabaseNames_Params, | |
| 219 std::vector<string16> /* database_names */) | |
| 220 | |
| 208 // WebIDBFactory::open() message. | 221 // WebIDBFactory::open() message. |
| 209 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryOpen, | 222 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryOpen, |
| 210 IndexedDBHostMsg_FactoryOpen_Params) | 223 IndexedDBHostMsg_FactoryOpen_Params) |
| 211 | 224 |
| 212 // WebIDBFactory::deleteDatabase() message. | 225 // WebIDBFactory::deleteDatabase() message. |
| 213 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryDeleteDatabase, | 226 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryDeleteDatabase, |
| 214 IndexedDBHostMsg_FactoryDeleteDatabase_Params) | 227 IndexedDBHostMsg_FactoryDeleteDatabase_Params) |
| 215 | 228 |
| 216 // WebIDBDatabase::name() message. | 229 // WebIDBDatabase::name() message. |
| 217 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_DatabaseName, | 230 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, | 428 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort, |
| 416 int32 /* idb_transaction_id */) | 429 int32 /* idb_transaction_id */) |
| 417 | 430 |
| 418 // IDBTransaction::DidCompleteTaskEvents() message. | 431 // IDBTransaction::DidCompleteTaskEvents() message. |
| 419 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, | 432 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, |
| 420 int32 /* idb_transaction_id */) | 433 int32 /* idb_transaction_id */) |
| 421 | 434 |
| 422 // WebIDBTransaction::~WebIDBTransaction() message. | 435 // WebIDBTransaction::~WebIDBTransaction() message. |
| 423 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, | 436 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, |
| 424 int32 /* idb_transaction_id */) | 437 int32 /* idb_transaction_id */) |
| OLD | NEW |