| 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 // 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/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 1634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1645 | 1645 |
| 1646 // A renderer sends this to the browser process when it wants to | 1646 // A renderer sends this to the browser process when it wants to |
| 1647 // create a ppapi plugin. The browser will create the plugin process if | 1647 // create a ppapi plugin. The browser will create the plugin process if |
| 1648 // necessary, and will return a handle to the channel on success. | 1648 // necessary, and will return a handle to the channel on success. |
| 1649 // On error an empty string is returned. | 1649 // On error an empty string is returned. |
| 1650 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_OpenChannelToPepperPlugin, | 1650 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_OpenChannelToPepperPlugin, |
| 1651 FilePath /* path */, | 1651 FilePath /* path */, |
| 1652 base::ProcessHandle /* plugin_process_handle */, | 1652 base::ProcessHandle /* plugin_process_handle */, |
| 1653 IPC::ChannelHandle /* handle to channel */) | 1653 IPC::ChannelHandle /* handle to channel */) |
| 1654 | 1654 |
| 1655 // A guest instance is ready to be placed. |
| 1656 IPC_MESSAGE_ROUTED3(ViewMsg_GuestReady_ACK, |
| 1657 int /* instance id */, |
| 1658 base::ProcessHandle /* plugin_process_handle */, |
| 1659 IPC::ChannelHandle /* handle to channel */) |
| 1660 |
| 1661 // Indicates the guest renderer is ready in response to a ViewMsg_New |
| 1662 IPC_MESSAGE_ROUTED0(ViewHostMsg_GuestReady) |
| 1663 |
| 1664 // A renderer sends this to the browser process when it wants to |
| 1665 // create a browser plugin. The browser will create the plugin process if |
| 1666 // necessary, and will return a handle to the channel on success. |
| 1667 IPC_MESSAGE_ROUTED4(ViewHostMsg_OpenChannelToBrowserPlugin, |
| 1668 int /* plugin instance id*/, |
| 1669 long long /* frame id */, |
| 1670 std::string /* src */, |
| 1671 gfx::Size /* size */) |
| 1672 |
| 1673 // A host renderer sends this message to the browser when it wants |
| 1674 // to resize a guest plugin container so that the guest is relaid out |
| 1675 // according to the new size. |
| 1676 IPC_MESSAGE_ROUTED2(ViewHostMsg_ResizeGuest, |
| 1677 int32, /* width */ |
| 1678 int32 /* height */); |
| 1679 |
| 1655 // A renderer sends this to the browser process when it wants to | 1680 // A renderer sends this to the browser process when it wants to |
| 1656 // create a ppapi broker. The browser will create the broker process | 1681 // create a ppapi broker. The browser will create the broker process |
| 1657 // if necessary, and will return a handle to the channel on success. | 1682 // if necessary, and will return a handle to the channel on success. |
| 1658 // On error an empty string is returned. | 1683 // On error an empty string is returned. |
| 1659 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated. | 1684 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated. |
| 1660 IPC_MESSAGE_CONTROL3(ViewHostMsg_OpenChannelToPpapiBroker, | 1685 IPC_MESSAGE_CONTROL3(ViewHostMsg_OpenChannelToPpapiBroker, |
| 1661 int /* routing_id */, | 1686 int /* routing_id */, |
| 1662 int /* request_id */, | 1687 int /* request_id */, |
| 1663 FilePath /* path */) | 1688 FilePath /* path */) |
| 1664 | 1689 |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1990 // have a javascript send a native value (string, number, boolean) to the | 2015 // have a javascript send a native value (string, number, boolean) to the |
| 1991 // listener in Cpp. (DomAutomationController) | 2016 // listener in Cpp. (DomAutomationController) |
| 1992 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse, | 2017 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse, |
| 1993 std::string /* json_string */, | 2018 std::string /* json_string */, |
| 1994 int /* automation_id */) | 2019 int /* automation_id */) |
| 1995 | 2020 |
| 1996 // Enable or disable inverting of web content pixels, for users who prefer | 2021 // Enable or disable inverting of web content pixels, for users who prefer |
| 1997 // white-on-black. | 2022 // white-on-black. |
| 1998 IPC_MESSAGE_ROUTED1(ViewMsg_InvertWebContent, | 2023 IPC_MESSAGE_ROUTED1(ViewMsg_InvertWebContent, |
| 1999 bool /* invert */) | 2024 bool /* invert */) |
| OLD | NEW |