OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
915 GURL /* first_party_for_cookies */, | 915 GURL /* first_party_for_cookies */, |
916 std::string /* cookies */) | 916 std::string /* cookies */) |
917 | 917 |
918 // Used to get the list of plugins | 918 // Used to get the list of plugins |
919 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetPlugins, | 919 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetPlugins, |
920 bool /* refresh*/, | 920 bool /* refresh*/, |
921 std::vector<WebPluginInfo> /* plugins */) | 921 std::vector<WebPluginInfo> /* plugins */) |
922 | 922 |
923 // Returns a path to a plugin for the given url and mime type. If there's | 923 // Returns a path to a plugin for the given url and mime type. If there's |
924 // no plugin, an empty string is returned. | 924 // no plugin, an empty string is returned. |
925 IPC_SYNC_MESSAGE_CONTROL4_2(ViewHostMsg_GetPluginPath, | 925 IPC_SYNC_MESSAGE_CONTROL3_2(ViewHostMsg_GetPluginPath, |
926 GURL /* url */, | 926 GURL /* url */, |
927 GURL /* policy_url */, | 927 GURL /* policy_url */, |
928 std::string /* mime_type */, | 928 std::string /* mime_type */, |
929 std::string /* clsid */, | |
930 FilePath /* filename */, | 929 FilePath /* filename */, |
931 std::string /* actual mime type for url */) | 930 std::string /* actual mime type for url */) |
932 | 931 |
933 // Requests spellcheck for a word. | 932 // Requests spellcheck for a word. |
934 IPC_SYNC_MESSAGE_ROUTED1_2(ViewHostMsg_SpellCheck, | 933 IPC_SYNC_MESSAGE_ROUTED1_2(ViewHostMsg_SpellCheck, |
935 std::wstring /* word to check */, | 934 std::wstring /* word to check */, |
936 int /* misspell location */, | 935 int /* misspell location */, |
937 int /* misspell length */) | 936 int /* misspell length */) |
938 | 937 |
939 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetAutoCorrectWord, | 938 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetAutoCorrectWord, |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1011 // A message for an external host. | 1010 // A message for an external host. |
1012 IPC_MESSAGE_ROUTED3(ViewHostMsg_ForwardMessageToExternalHost, | 1011 IPC_MESSAGE_ROUTED3(ViewHostMsg_ForwardMessageToExternalHost, |
1013 std::string /* message */, | 1012 std::string /* message */, |
1014 std::string /* origin */, | 1013 std::string /* origin */, |
1015 std::string /* target */) | 1014 std::string /* target */) |
1016 | 1015 |
1017 // A renderer sends this to the browser process when it wants to | 1016 // A renderer sends this to the browser process when it wants to |
1018 // create a plugin. The browser will create the plugin process if | 1017 // create a plugin. The browser will create the plugin process if |
1019 // necessary, and will return a handle to the channel on success. | 1018 // necessary, and will return a handle to the channel on success. |
1020 // On error an empty string is returned. | 1019 // On error an empty string is returned. |
1021 IPC_SYNC_MESSAGE_CONTROL4_2(ViewHostMsg_OpenChannelToPlugin, | 1020 IPC_SYNC_MESSAGE_CONTROL3_2(ViewHostMsg_OpenChannelToPlugin, |
1022 GURL /* url */, | 1021 GURL /* url */, |
1023 std::string /* mime_type */, | 1022 std::string /* mime_type */, |
1024 std::string /* clsid */, | |
1025 std::wstring /* locale */, | 1023 std::wstring /* locale */, |
1026 IPC::ChannelHandle /* handle to channel */, | 1024 IPC::ChannelHandle /* handle to channel */, |
1027 WebPluginInfo /* info */) | 1025 WebPluginInfo /* info */) |
1028 | 1026 |
1029 #if defined(OS_LINUX) | 1027 #if defined(OS_LINUX) |
1030 // A renderer sends this when it needs a browser-side widget for | 1028 // A renderer sends this when it needs a browser-side widget for |
1031 // hosting a windowed plugin. id is the XID of the plugin window, for which | 1029 // hosting a windowed plugin. id is the XID of the plugin window, for which |
1032 // the container is created. | 1030 // the container is created. |
1033 IPC_SYNC_MESSAGE_ROUTED1_0(ViewHostMsg_CreatePluginContainer, | 1031 IPC_SYNC_MESSAGE_ROUTED1_0(ViewHostMsg_CreatePluginContainer, |
1034 gfx::PluginWindowHandle /* id */) | 1032 gfx::PluginWindowHandle /* id */) |
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1702 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileAttributes, | 1700 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileAttributes, |
1703 FilePath /* the name of the file */, | 1701 FilePath /* the name of the file */, |
1704 int32 /* a unique message ID */) | 1702 int32 /* a unique message ID */) |
1705 | 1703 |
1706 // Asks the browser process to return the size of a DB file | 1704 // Asks the browser process to return the size of a DB file |
1707 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileSize, | 1705 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileSize, |
1708 FilePath /* the name of the file */, | 1706 FilePath /* the name of the file */, |
1709 int32 /* a unique message ID */) | 1707 int32 /* a unique message ID */) |
1710 | 1708 |
1711 IPC_END_MESSAGES(ViewHost) | 1709 IPC_END_MESSAGES(ViewHost) |
OLD | NEW |