OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Multiply-included message header, no traditional include guard. | 5 // Multiply-included message header, no traditional include guard. |
6 #include <map> | 6 #include <map> |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 // The list of switches can be found in: | 422 // The list of switches can be found in: |
423 // components/nacl/browser/nacl_process_host.cc | 423 // components/nacl/browser/nacl_process_host.cc |
424 IPC_STRUCT_TRAITS_BEGIN(ppapi::PpapiNaClPluginArgs) | 424 IPC_STRUCT_TRAITS_BEGIN(ppapi::PpapiNaClPluginArgs) |
425 IPC_STRUCT_TRAITS_MEMBER(off_the_record) | 425 IPC_STRUCT_TRAITS_MEMBER(off_the_record) |
426 IPC_STRUCT_TRAITS_MEMBER(permissions) | 426 IPC_STRUCT_TRAITS_MEMBER(permissions) |
427 IPC_STRUCT_TRAITS_MEMBER(keepalive_throttle_interval_milliseconds) | 427 IPC_STRUCT_TRAITS_MEMBER(keepalive_throttle_interval_milliseconds) |
428 IPC_STRUCT_TRAITS_MEMBER(switch_names) | 428 IPC_STRUCT_TRAITS_MEMBER(switch_names) |
429 IPC_STRUCT_TRAITS_MEMBER(switch_values) | 429 IPC_STRUCT_TRAITS_MEMBER(switch_values) |
430 IPC_STRUCT_TRAITS_END() | 430 IPC_STRUCT_TRAITS_END() |
431 | 431 |
| 432 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::CompletedBrowserResourceHosts) |
| 433 IPC_STRUCT_TRAITS_MEMBER(sequence_id) |
| 434 IPC_STRUCT_TRAITS_MEMBER(host_ids) |
| 435 IPC_STRUCT_TRAITS_END() |
| 436 |
432 #if !defined(OS_NACL) && !defined(NACL_WIN64) | 437 #if !defined(OS_NACL) && !defined(NACL_WIN64) |
433 | 438 |
434 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPDecryptor_Buffer) | 439 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPDecryptor_Buffer) |
435 IPC_STRUCT_TRAITS_MEMBER(resource) | 440 IPC_STRUCT_TRAITS_MEMBER(resource) |
436 IPC_STRUCT_TRAITS_MEMBER(handle) | 441 IPC_STRUCT_TRAITS_MEMBER(handle) |
437 IPC_STRUCT_TRAITS_MEMBER(size) | 442 IPC_STRUCT_TRAITS_MEMBER(size) |
438 IPC_STRUCT_TRAITS_END() | 443 IPC_STRUCT_TRAITS_END() |
439 | 444 |
440 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 445 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
441 | 446 |
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1329 int /* child_process_id */, | 1334 int /* child_process_id */, |
1330 ppapi::proxy::ResourceMessageCallParams /* params */, | 1335 ppapi::proxy::ResourceMessageCallParams /* params */, |
1331 PP_Instance /* instance */, | 1336 PP_Instance /* instance */, |
1332 std::vector<IPC::Message> /* nested_msgs */) | 1337 std::vector<IPC::Message> /* nested_msgs */) |
1333 | 1338 |
1334 // This message is sent from the browser to the renderer when it has created | 1339 // This message is sent from the browser to the renderer when it has created |
1335 // ResourceHosts for the renderer. It contains the sequence number that was sent | 1340 // ResourceHosts for the renderer. It contains the sequence number that was sent |
1336 // in the request and the IDs of the pending ResourceHosts which were created in | 1341 // in the request and the IDs of the pending ResourceHosts which were created in |
1337 // the browser. These IDs are only useful for the plugin which can attach to the | 1342 // the browser. These IDs are only useful for the plugin which can attach to the |
1338 // ResourceHosts in the browser. | 1343 // ResourceHosts in the browser. |
1339 IPC_MESSAGE_ROUTED2( | 1344 IPC_MESSAGE_ROUTED1( |
1340 PpapiHostMsg_CreateResourceHostsFromHostReply, | 1345 PpapiHostMsg_CreateResourceHostsFromHostReply, |
1341 int32_t /* sequence */, | 1346 ppapi::proxy::CompletedBrowserResourceHosts /* completed_hosts */) |
1342 std::vector<int> /* pending_host_ids */) | 1347 |
| 1348 // The renderer sends this back to the browser to acknowledge receipt of the |
| 1349 // pending_host_ids. The browser has to keep track of the pending_host_ids until |
| 1350 // it receives this Ack, in case a sync message comes along needing the |
| 1351 // pending_host_ids immediately, possibly before the above Reply has been |
| 1352 // received. |
| 1353 IPC_MESSAGE_CONTROL3( |
| 1354 PpapiHostMsg_CreateResourceHostsFromHostReplyAck, |
| 1355 int /* child_process_id */, |
| 1356 PP_Instance /* instance */, |
| 1357 int /* sequence_num */) |
| 1358 |
| 1359 // The renderer can send this to the browser to retrieve all pending hosts |
| 1360 // synchronously. |
| 1361 IPC_SYNC_MESSAGE_CONTROL3_1( |
| 1362 PpapiHostMsg_GetAllPendingResourceHosts, |
| 1363 int /* routing_id */, |
| 1364 int /* child_process_id */, |
| 1365 PP_Instance /* instance */, |
| 1366 std::vector<ppapi::proxy::CompletedBrowserResourceHosts>) |
1343 | 1367 |
1344 //----------------------------------------------------------------------------- | 1368 //----------------------------------------------------------------------------- |
1345 // Messages for resources using call/reply above. | 1369 // Messages for resources using call/reply above. |
1346 | 1370 |
1347 // Broker ---------------------------------------------------------------------- | 1371 // Broker ---------------------------------------------------------------------- |
1348 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_Create) | 1372 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_Create) |
1349 | 1373 |
1350 // Queries whether the plugin has permission to connect to the Pepper broker. | 1374 // Queries whether the plugin has permission to connect to the Pepper broker. |
1351 // The response is contained in the error value of the | 1375 // The response is contained in the error value of the |
1352 // ResourceMessageReplyParams in the reply message. | 1376 // ResourceMessageReplyParams in the reply message. |
(...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2274 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, | 2298 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, |
2275 PP_TalkPermission /* permission */) | 2299 PP_TalkPermission /* permission */) |
2276 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) | 2300 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) |
2277 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) | 2301 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) |
2278 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) | 2302 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) |
2279 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) | 2303 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) |
2280 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) | 2304 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) |
2281 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) | 2305 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) |
2282 | 2306 |
2283 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 2307 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
OLD | NEW |