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/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
9 #include "base/process.h" | 9 #include "base/process.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 1661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1672 // Used to check if cookies are enabled for the given URL. This may block | 1672 // Used to check if cookies are enabled for the given URL. This may block |
1673 // waiting for a previous SetCookie message to be processed. | 1673 // waiting for a previous SetCookie message to be processed. |
1674 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CookiesEnabled, | 1674 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CookiesEnabled, |
1675 GURL /* url */, | 1675 GURL /* url */, |
1676 GURL /* first_party_for_cookies */, | 1676 GURL /* first_party_for_cookies */, |
1677 bool /* cookies_enabled */) | 1677 bool /* cookies_enabled */) |
1678 | 1678 |
1679 // Used to get the list of plugins | 1679 // Used to get the list of plugins |
1680 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetPlugins, | 1680 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetPlugins, |
1681 bool /* refresh*/, | 1681 bool /* refresh*/, |
1682 std::vector<webkit::WebPluginInfo> /* plugins */) | 1682 std::vector<content::WebPluginInfo> /* plugins */) |
1683 | 1683 |
1684 // Return information about a plugin for the given URL and MIME | 1684 // Return information about a plugin for the given URL and MIME |
1685 // type. If there is no matching plugin, |found| is false. | 1685 // type. If there is no matching plugin, |found| is false. |
1686 // |actual_mime_type| is the actual mime type supported by the | 1686 // |actual_mime_type| is the actual mime type supported by the |
1687 // found plugin. | 1687 // found plugin. |
1688 IPC_SYNC_MESSAGE_CONTROL4_3(ViewHostMsg_GetPluginInfo, | 1688 IPC_SYNC_MESSAGE_CONTROL4_3(ViewHostMsg_GetPluginInfo, |
1689 int /* routing_id */, | 1689 int /* routing_id */, |
1690 GURL /* url */, | 1690 GURL /* url */, |
1691 GURL /* page_url */, | 1691 GURL /* page_url */, |
1692 std::string /* mime_type */, | 1692 std::string /* mime_type */, |
1693 bool /* found */, | 1693 bool /* found */, |
1694 webkit::WebPluginInfo /* plugin info */, | 1694 content::WebPluginInfo /* plugin info */, |
1695 std::string /* actual_mime_type */) | 1695 std::string /* actual_mime_type */) |
1696 | 1696 |
1697 // A renderer sends this to the browser process when it wants to | 1697 // A renderer sends this to the browser process when it wants to |
1698 // create a plugin. The browser will create the plugin process if | 1698 // create a plugin. The browser will create the plugin process if |
1699 // necessary, and will return a handle to the channel on success. | 1699 // necessary, and will return a handle to the channel on success. |
1700 // On error an empty string is returned. | 1700 // On error an empty string is returned. |
1701 IPC_SYNC_MESSAGE_CONTROL4_2(ViewHostMsg_OpenChannelToPlugin, | 1701 IPC_SYNC_MESSAGE_CONTROL4_2(ViewHostMsg_OpenChannelToPlugin, |
1702 int /* routing_id */, | 1702 int /* routing_id */, |
1703 GURL /* url */, | 1703 GURL /* url */, |
1704 GURL /* page_url */, | 1704 GURL /* page_url */, |
1705 std::string /* mime_type */, | 1705 std::string /* mime_type */, |
1706 IPC::ChannelHandle /* channel_handle */, | 1706 IPC::ChannelHandle /* channel_handle */, |
1707 webkit::WebPluginInfo /* info */) | 1707 content::WebPluginInfo /* info */) |
1708 | 1708 |
1709 #if defined(OS_WIN) | 1709 #if defined(OS_WIN) |
1710 IPC_MESSAGE_ROUTED1(ViewHostMsg_WindowlessPluginDummyWindowCreated, | 1710 IPC_MESSAGE_ROUTED1(ViewHostMsg_WindowlessPluginDummyWindowCreated, |
1711 gfx::NativeViewId /* dummy_activation_window */) | 1711 gfx::NativeViewId /* dummy_activation_window */) |
1712 | 1712 |
1713 IPC_MESSAGE_ROUTED1(ViewHostMsg_WindowlessPluginDummyWindowDestroyed, | 1713 IPC_MESSAGE_ROUTED1(ViewHostMsg_WindowlessPluginDummyWindowDestroyed, |
1714 gfx::NativeViewId /* dummy_activation_window */) | 1714 gfx::NativeViewId /* dummy_activation_window */) |
1715 #endif | 1715 #endif |
1716 | 1716 |
1717 // Get the list of proxies to use for |url|, as a semicolon delimited list | 1717 // Get the list of proxies to use for |url|, as a semicolon delimited list |
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2347 // synchronously (see crbug.com/120597). This IPC message sends the character | 2347 // synchronously (see crbug.com/120597). This IPC message sends the character |
2348 // bounds after every composition change to always have correct bound info. | 2348 // bounds after every composition change to always have correct bound info. |
2349 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2349 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
2350 ui::Range /* composition range */, | 2350 ui::Range /* composition range */, |
2351 std::vector<gfx::Rect> /* character bounds */) | 2351 std::vector<gfx::Rect> /* character bounds */) |
2352 #endif | 2352 #endif |
2353 | 2353 |
2354 // Adding a new message? Stick to the sort order above: first platform | 2354 // Adding a new message? Stick to the sort order above: first platform |
2355 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2355 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
2356 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2356 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |