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 // IPC messages for page rendering. | 5 // IPC messages for page rendering. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include "base/process.h" | 8 #include "base/process.h" |
9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
10 #include "content/common/common_param_traits.h" | 10 #include "content/common/common_param_traits.h" |
(...skipping 1527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1538 GURL /* url */, | 1538 GURL /* url */, |
1539 GURL /* first_party_for_cookies */, | 1539 GURL /* first_party_for_cookies */, |
1540 bool /* cookies_enabled */) | 1540 bool /* cookies_enabled */) |
1541 | 1541 |
1542 // Used to get the list of plugins | 1542 // Used to get the list of plugins |
1543 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetPlugins, | 1543 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetPlugins, |
1544 bool /* refresh*/, | 1544 bool /* refresh*/, |
1545 std::vector<webkit::npapi::WebPluginInfo> /* plugins */) | 1545 std::vector<webkit::npapi::WebPluginInfo> /* plugins */) |
1546 | 1546 |
1547 // Return information about a plugin for the given URL and MIME | 1547 // Return information about a plugin for the given URL and MIME |
1548 // type. If there is no matching plugin, |found| is false. If | 1548 // type. If there is no matching plugin, |found| is false. |
1549 // |enabled| in the WebPluginInfo struct is false, the plug-in is | |
1550 // treated as if it was not installed at all. | |
1551 // |actual_mime_type| is the actual mime type supported by the | 1549 // |actual_mime_type| is the actual mime type supported by the |
1552 // plugin found that match the URL given (one for each item in | 1550 // plugin found that match the URL given (one for each item in |
1553 // |info|). | 1551 // |info|). |
1554 IPC_SYNC_MESSAGE_CONTROL4_3(ViewHostMsg_GetPluginInfo, | 1552 IPC_SYNC_MESSAGE_CONTROL4_3(ViewHostMsg_GetPluginInfo, |
1555 int /* routing_id */, | 1553 int /* routing_id */, |
1556 GURL /* url */, | 1554 GURL /* url */, |
1557 GURL /* policy_url */, | 1555 GURL /* page_url */, |
1558 std::string /* mime_type */, | 1556 std::string /* mime_type */, |
1559 bool /* found */, | 1557 bool /* found */, |
1560 webkit::npapi::WebPluginInfo /* plugin info */, | 1558 webkit::npapi::WebPluginInfo /* plugin info */, |
1561 std::string /* actual_mime_type */) | 1559 std::string /* actual_mime_type */) |
1562 | 1560 |
1563 // A renderer sends this to the browser process when it wants to | 1561 // A renderer sends this to the browser process when it wants to |
1564 // create a plugin. The browser will create the plugin process if | 1562 // create a plugin. The browser will create the plugin process if |
1565 // necessary, and will return a handle to the channel on success. | 1563 // necessary, and will return a handle to the channel on success. |
1566 // On error an empty string is returned. | 1564 // On error an empty string is returned. |
1567 IPC_SYNC_MESSAGE_CONTROL3_2(ViewHostMsg_OpenChannelToPlugin, | 1565 IPC_SYNC_MESSAGE_CONTROL4_2(ViewHostMsg_OpenChannelToPlugin, |
1568 int /* routing_id */, | 1566 int /* routing_id */, |
1569 GURL /* url */, | 1567 GURL /* url */, |
| 1568 GURL /* page_url */, |
1570 std::string /* mime_type */, | 1569 std::string /* mime_type */, |
1571 IPC::ChannelHandle /* channel_handle */, | 1570 IPC::ChannelHandle /* channel_handle */, |
1572 webkit::npapi::WebPluginInfo /* info */) | 1571 webkit::npapi::WebPluginInfo /* info */) |
1573 | 1572 |
1574 // A renderer sends this to the browser process when it wants to create a | 1573 // A renderer sends this to the browser process when it wants to create a |
1575 // worker. The browser will create the worker process if necessary, and | 1574 // worker. The browser will create the worker process if necessary, and |
1576 // will return the route id on success. On error returns MSG_ROUTING_NONE. | 1575 // will return the route id on success. On error returns MSG_ROUTING_NONE. |
1577 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateWorker, | 1576 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateWorker, |
1578 ViewHostMsg_CreateWorker_Params, | 1577 ViewHostMsg_CreateWorker_Params, |
1579 int /* route_id */) | 1578 int /* route_id */) |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2040 int32 /* complete status */) | 2039 int32 /* complete status */) |
2041 | 2040 |
2042 // Request updated information about the client firewall traversal policy. | 2041 // Request updated information about the client firewall traversal policy. |
2043 // Will result in a ViewMsg_UpdateRemoteAccessClientFirewallTraversal message | 2042 // Will result in a ViewMsg_UpdateRemoteAccessClientFirewallTraversal message |
2044 // being sent back. | 2043 // being sent back. |
2045 IPC_MESSAGE_ROUTED0(ViewHostMsg_RequestRemoteAccessClientFirewallTraversal) | 2044 IPC_MESSAGE_ROUTED0(ViewHostMsg_RequestRemoteAccessClientFirewallTraversal) |
2046 | 2045 |
2047 // Notifies the browser of an event occurring in the media pipeline. | 2046 // Notifies the browser of an event occurring in the media pipeline. |
2048 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvent, | 2047 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvent, |
2049 media::MediaLogEvent /* event */) | 2048 media::MediaLogEvent /* event */) |
OLD | NEW |