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 | |
881 #if defined(IPC_MESSAGE_LOG_ENABLED) | 877 #if defined(IPC_MESSAGE_LOG_ENABLED) |
882 // Tell the renderer process to begin or end IPC message logging. | 878 // Tell the renderer process to begin or end IPC message logging. |
883 IPC_MESSAGE_CONTROL1(ViewMsg_SetIPCLoggingEnabled, | 879 IPC_MESSAGE_CONTROL1(ViewMsg_SetIPCLoggingEnabled, |
884 bool /* on or off */) | 880 bool /* on or off */) |
885 #endif | 881 #endif |
886 | 882 |
887 // Socket Stream messages: | 883 // Socket Stream messages: |
888 // These are messages from the browser to the SocketStreamHandle on | 884 // These are messages from the browser to the SocketStreamHandle on |
889 // a renderer. | 885 // a renderer. |
890 | 886 |
(...skipping 1385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2276 | 2272 |
2277 // WebIDBCursor::value() message. | 2273 // WebIDBCursor::value() message. |
2278 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBCursorValue, | 2274 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBCursorValue, |
2279 int32, /* idb_cursor_id */ | 2275 int32, /* idb_cursor_id */ |
2280 SerializedScriptValue) | 2276 SerializedScriptValue) |
2281 | 2277 |
2282 // WebIDBFactory::open() message. | 2278 // WebIDBFactory::open() message. |
2283 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBFactoryOpen, | 2279 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBFactoryOpen, |
2284 ViewHostMsg_IDBFactoryOpen_Params) | 2280 ViewHostMsg_IDBFactoryOpen_Params) |
2285 | 2281 |
2286 // WebIDBFactory::abortPendingTransactions() message. | |
2287 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBFactoryAbortPendingTransactions, | |
2288 std::vector<int32> /* transaction_ids */) | |
2289 | |
2290 // WebIDBDatabase::name() message. | 2282 // WebIDBDatabase::name() message. |
2291 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBDatabaseName, | 2283 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBDatabaseName, |
2292 int32, /* idb_database_id */ | 2284 int32, /* idb_database_id */ |
2293 string16 /* name */) | 2285 string16 /* name */) |
2294 | 2286 |
2295 // WebIDBDatabase::description() message. | 2287 // WebIDBDatabase::description() message. |
2296 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBDatabaseDescription, | 2288 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBDatabaseDescription, |
2297 int32, /* idb_database_id */ | 2289 int32, /* idb_database_id */ |
2298 string16 /* description */) | 2290 string16 /* description */) |
2299 | 2291 |
(...skipping 18 matching lines...) Expand all Loading... |
2318 int32, /* mode */ | 2310 int32, /* mode */ |
2319 bool, /* success */ | 2311 bool, /* success */ |
2320 int32 /* idb_object_store_id */) | 2312 int32 /* idb_object_store_id */) |
2321 | 2313 |
2322 // WebIDBDatabase::removeObjectStore() message. | 2314 // WebIDBDatabase::removeObjectStore() message. |
2323 IPC_MESSAGE_CONTROL3(ViewHostMsg_IDBDatabaseRemoveObjectStore, | 2315 IPC_MESSAGE_CONTROL3(ViewHostMsg_IDBDatabaseRemoveObjectStore, |
2324 int32, /* idb_database_id */ | 2316 int32, /* idb_database_id */ |
2325 int32, /* response_id */ | 2317 int32, /* response_id */ |
2326 string16 /* name */) | 2318 string16 /* name */) |
2327 | 2319 |
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 | |
2340 // WebIDBDatabase::~WebIDBDatabase() message. | 2320 // WebIDBDatabase::~WebIDBDatabase() message. |
2341 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBDatabaseDestroyed, | 2321 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBDatabaseDestroyed, |
2342 int32 /* idb_database_id */) | 2322 int32 /* idb_database_id */) |
2343 | 2323 |
2344 // WebIDBIndex::name() message. | 2324 // WebIDBIndex::name() message. |
2345 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBIndexName, | 2325 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBIndexName, |
2346 int32, /* idb_index_id */ | 2326 int32, /* idb_index_id */ |
2347 string16 /* name */) | 2327 string16 /* name */) |
2348 | 2328 |
2349 // WebIDBIndex::keyPath() message. | 2329 // WebIDBIndex::keyPath() message. |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2417 ViewHostMsg_IDBObjectStoreOpenCursor_Params) | 2397 ViewHostMsg_IDBObjectStoreOpenCursor_Params) |
2418 | 2398 |
2419 // WebIDBObjectStore::~WebIDBObjectStore() message. | 2399 // WebIDBObjectStore::~WebIDBObjectStore() message. |
2420 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBObjectStoreDestroyed, | 2400 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBObjectStoreDestroyed, |
2421 int32 /* idb_object_store_id */) | 2401 int32 /* idb_object_store_id */) |
2422 | 2402 |
2423 // WebIDBDatabase::~WebIDBCursor() message. | 2403 // WebIDBDatabase::~WebIDBCursor() message. |
2424 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBCursorDestroyed, | 2404 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBCursorDestroyed, |
2425 int32 /* idb_cursor_id */) | 2405 int32 /* idb_cursor_id */) |
2426 | 2406 |
2427 // WebIDBTransaction::~WebIDBTransaction() message. | |
2428 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBTransactionDestroyed, | |
2429 int32 /* idb_index_id */) | |
2430 | |
2431 // Get file size in bytes. Set result to -1 if failed to get the file size. | 2407 // Get file size in bytes. Set result to -1 if failed to get the file size. |
2432 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetFileSize, | 2408 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetFileSize, |
2433 FilePath /* path */, | 2409 FilePath /* path */, |
2434 int64 /* result */) | 2410 int64 /* result */) |
2435 | 2411 |
2436 // Get file modification time in seconds. Set result to 0 if failed to get the | 2412 // Get file modification time in seconds. Set result to 0 if failed to get the |
2437 // file modification time. | 2413 // file modification time. |
2438 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetFileModificationTime, | 2414 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetFileModificationTime, |
2439 FilePath /* path */, | 2415 FilePath /* path */, |
2440 base::Time /* result */) | 2416 base::Time /* result */) |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2668 | 2644 |
2669 // A RenderView requests to start receiving device orientation updates. | 2645 // A RenderView requests to start receiving device orientation updates. |
2670 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StartUpdating, | 2646 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StartUpdating, |
2671 int /* render_view_id */) | 2647 int /* render_view_id */) |
2672 | 2648 |
2673 // A RenderView requests to stop receiving device orientation updates. | 2649 // A RenderView requests to stop receiving device orientation updates. |
2674 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StopUpdating, | 2650 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StopUpdating, |
2675 int /* render_view_id */) | 2651 int /* render_view_id */) |
2676 | 2652 |
2677 IPC_END_MESSAGES(ViewHost) | 2653 IPC_END_MESSAGES(ViewHost) |
OLD | NEW |