OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // This header is meant to be included in multiple passes, hence no traditional | 5 // This header is meant to be included in multiple passes, hence no traditional |
6 // header guard. | 6 // header guard. |
7 // See ipc_message_macros.h for explanation of the macros and passes. | 7 // See ipc_message_macros.h for explanation of the macros and passes. |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
867 int32 /* response_id */, | 867 int32 /* response_id */, |
868 SerializedScriptValue /* serialized_script_value */) | 868 SerializedScriptValue /* serialized_script_value */) |
869 IPC_MESSAGE_CONTROL2(ViewMsg_IDBCallbackSuccessOpenCursor, | 869 IPC_MESSAGE_CONTROL2(ViewMsg_IDBCallbackSuccessOpenCursor, |
870 int32 /* response_id */, | 870 int32 /* response_id */, |
871 int32 /* cursor_id */) | 871 int32 /* cursor_id */) |
872 IPC_MESSAGE_CONTROL3(ViewMsg_IDBCallbacksError, | 872 IPC_MESSAGE_CONTROL3(ViewMsg_IDBCallbacksError, |
873 int32 /* response_id */, | 873 int32 /* response_id */, |
874 int /* code */, | 874 int /* code */, |
875 string16 /* message */) | 875 string16 /* message */) |
876 | 876 |
| 877 // IDBTransactionCallback message handlers. |
| 878 IPC_MESSAGE_CONTROL1(ViewMsg_IDBTransactionCallbacksAbort, |
| 879 int /* transaction_id */) |
| 880 |
877 #if defined(IPC_MESSAGE_LOG_ENABLED) | 881 #if defined(IPC_MESSAGE_LOG_ENABLED) |
878 // Tell the renderer process to begin or end IPC message logging. | 882 // Tell the renderer process to begin or end IPC message logging. |
879 IPC_MESSAGE_CONTROL1(ViewMsg_SetIPCLoggingEnabled, | 883 IPC_MESSAGE_CONTROL1(ViewMsg_SetIPCLoggingEnabled, |
880 bool /* on or off */) | 884 bool /* on or off */) |
881 #endif | 885 #endif |
882 | 886 |
883 // Socket Stream messages: | 887 // Socket Stream messages: |
884 // These are messages from the browser to the SocketStreamHandle on | 888 // These are messages from the browser to the SocketStreamHandle on |
885 // a renderer. | 889 // a renderer. |
886 | 890 |
(...skipping 1385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2272 | 2276 |
2273 // WebIDBCursor::value() message. | 2277 // WebIDBCursor::value() message. |
2274 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBCursorValue, | 2278 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBCursorValue, |
2275 int32, /* idb_cursor_id */ | 2279 int32, /* idb_cursor_id */ |
2276 SerializedScriptValue) | 2280 SerializedScriptValue) |
2277 | 2281 |
2278 // WebIDBFactory::open() message. | 2282 // WebIDBFactory::open() message. |
2279 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBFactoryOpen, | 2283 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBFactoryOpen, |
2280 ViewHostMsg_IDBFactoryOpen_Params) | 2284 ViewHostMsg_IDBFactoryOpen_Params) |
2281 | 2285 |
| 2286 // WebIDBFactory::abortPendingTransactions() message. |
| 2287 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBFactoryAbortPendingTransactions, |
| 2288 std::vector<int32> /* transaction_ids */) |
| 2289 |
2282 // WebIDBDatabase::name() message. | 2290 // WebIDBDatabase::name() message. |
2283 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBDatabaseName, | 2291 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBDatabaseName, |
2284 int32, /* idb_database_id */ | 2292 int32, /* idb_database_id */ |
2285 string16 /* name */) | 2293 string16 /* name */) |
2286 | 2294 |
2287 // WebIDBDatabase::description() message. | 2295 // WebIDBDatabase::description() message. |
2288 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBDatabaseDescription, | 2296 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBDatabaseDescription, |
2289 int32, /* idb_database_id */ | 2297 int32, /* idb_database_id */ |
2290 string16 /* description */) | 2298 string16 /* description */) |
2291 | 2299 |
(...skipping 18 matching lines...) Expand all Loading... |
2310 int32, /* mode */ | 2318 int32, /* mode */ |
2311 bool, /* success */ | 2319 bool, /* success */ |
2312 int32 /* idb_object_store_id */) | 2320 int32 /* idb_object_store_id */) |
2313 | 2321 |
2314 // WebIDBDatabase::removeObjectStore() message. | 2322 // WebIDBDatabase::removeObjectStore() message. |
2315 IPC_MESSAGE_CONTROL3(ViewHostMsg_IDBDatabaseRemoveObjectStore, | 2323 IPC_MESSAGE_CONTROL3(ViewHostMsg_IDBDatabaseRemoveObjectStore, |
2316 int32, /* idb_database_id */ | 2324 int32, /* idb_database_id */ |
2317 int32, /* response_id */ | 2325 int32, /* response_id */ |
2318 string16 /* name */) | 2326 string16 /* name */) |
2319 | 2327 |
| 2328 // WebIDBDatabase::transaction() message. |
| 2329 // TODO: make this message async. Have the renderer create a |
| 2330 // temporary ID and keep a map in the browser process of real |
| 2331 // IDs to temporary IDs. We can then update the transaction |
| 2332 // to its real ID asynchronously. |
| 2333 IPC_SYNC_MESSAGE_CONTROL4_1(ViewHostMsg_IDBDatabaseTransaction, |
| 2334 int32, /* idb_database_id */ |
| 2335 std::vector<string16>, /* object_stores */ |
| 2336 int32, /* mode */ |
| 2337 int32, /* timeout */ |
| 2338 int32 /* idb_transaction_id */) |
| 2339 |
2320 // WebIDBDatabase::~WebIDBDatabase() message. | 2340 // WebIDBDatabase::~WebIDBDatabase() message. |
2321 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBDatabaseDestroyed, | 2341 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBDatabaseDestroyed, |
2322 int32 /* idb_database_id */) | 2342 int32 /* idb_database_id */) |
2323 | 2343 |
2324 // WebIDBIndex::name() message. | 2344 // WebIDBIndex::name() message. |
2325 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBIndexName, | 2345 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBIndexName, |
2326 int32, /* idb_index_id */ | 2346 int32, /* idb_index_id */ |
2327 string16 /* name */) | 2347 string16 /* name */) |
2328 | 2348 |
2329 // WebIDBIndex::keyPath() message. | 2349 // WebIDBIndex::keyPath() message. |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2397 ViewHostMsg_IDBObjectStoreOpenCursor_Params) | 2417 ViewHostMsg_IDBObjectStoreOpenCursor_Params) |
2398 | 2418 |
2399 // WebIDBObjectStore::~WebIDBObjectStore() message. | 2419 // WebIDBObjectStore::~WebIDBObjectStore() message. |
2400 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBObjectStoreDestroyed, | 2420 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBObjectStoreDestroyed, |
2401 int32 /* idb_object_store_id */) | 2421 int32 /* idb_object_store_id */) |
2402 | 2422 |
2403 // WebIDBDatabase::~WebIDBCursor() message. | 2423 // WebIDBDatabase::~WebIDBCursor() message. |
2404 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBCursorDestroyed, | 2424 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBCursorDestroyed, |
2405 int32 /* idb_cursor_id */) | 2425 int32 /* idb_cursor_id */) |
2406 | 2426 |
| 2427 // WebIDBTransaction::~WebIDBTransaction() message. |
| 2428 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBTransactionDestroyed, |
| 2429 int32 /* idb_index_id */) |
| 2430 |
2407 // Get file size in bytes. Set result to -1 if failed to get the file size. | 2431 // Get file size in bytes. Set result to -1 if failed to get the file size. |
2408 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetFileSize, | 2432 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetFileSize, |
2409 FilePath /* path */, | 2433 FilePath /* path */, |
2410 int64 /* result */) | 2434 int64 /* result */) |
2411 | 2435 |
2412 // Get file modification time in seconds. Set result to 0 if failed to get the | 2436 // Get file modification time in seconds. Set result to 0 if failed to get the |
2413 // file modification time. | 2437 // file modification time. |
2414 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetFileModificationTime, | 2438 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetFileModificationTime, |
2415 FilePath /* path */, | 2439 FilePath /* path */, |
2416 base::Time /* result */) | 2440 base::Time /* result */) |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2644 | 2668 |
2645 // A RenderView requests to start receiving device orientation updates. | 2669 // A RenderView requests to start receiving device orientation updates. |
2646 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StartUpdating, | 2670 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StartUpdating, |
2647 int /* render_view_id */) | 2671 int /* render_view_id */) |
2648 | 2672 |
2649 // A RenderView requests to stop receiving device orientation updates. | 2673 // A RenderView requests to stop receiving device orientation updates. |
2650 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StopUpdating, | 2674 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StopUpdating, |
2651 int /* render_view_id */) | 2675 int /* render_view_id */) |
2652 | 2676 |
2653 IPC_END_MESSAGES(ViewHost) | 2677 IPC_END_MESSAGES(ViewHost) |
OLD | NEW |