| 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> |
| 11 | 11 |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 | 13 |
| 14 #include "base/clipboard.h" | 14 #include "base/clipboard.h" |
| 15 #include "base/file_path.h" | 15 #include "base/file_path.h" |
| 16 #include "base/nullable_string16.h" | 16 #include "base/nullable_string16.h" |
| 17 #include "base/platform_file.h" | 17 #include "base/platform_file.h" |
| 18 #include "base/gfx/rect.h" | 18 #include "base/gfx/rect.h" |
| 19 #include "base/gfx/native_widget_types.h" | 19 #include "base/gfx/native_widget_types.h" |
| 20 #include "base/shared_memory.h" | 20 #include "base/shared_memory.h" |
| 21 #include "base/values.h" | 21 #include "base/values.h" |
| 22 #include "chrome/common/css_colors.h" | 22 #include "chrome/common/css_colors.h" |
| 23 #include "chrome/common/extensions/update_manifest.h" | 23 #include "chrome/common/extensions/update_manifest.h" |
| 24 #include "chrome/common/nacl_types.h" | |
| 25 #include "chrome/common/notification_type.h" | 24 #include "chrome/common/notification_type.h" |
| 26 #include "chrome/common/transport_dib.h" | 25 #include "chrome/common/transport_dib.h" |
| 27 #include "chrome/common/view_types.h" | 26 #include "chrome/common/view_types.h" |
| 28 #include "ipc/ipc_channel_handle.h" | 27 #include "ipc/ipc_channel_handle.h" |
| 29 #include "ipc/ipc_message_macros.h" | 28 #include "ipc/ipc_message_macros.h" |
| 30 #include "third_party/skia/include/core/SkBitmap.h" | 29 #include "third_party/skia/include/core/SkBitmap.h" |
| 31 #include "webkit/appcache/appcache_interfaces.h" | 30 #include "webkit/appcache/appcache_interfaces.h" |
| 32 #include "webkit/glue/dom_operations.h" | 31 #include "webkit/glue/dom_operations.h" |
| 33 #include "webkit/glue/webcursor.h" | 32 #include "webkit/glue/webcursor.h" |
| 34 #include "webkit/glue/webplugin.h" | 33 #include "webkit/glue/webplugin.h" |
| (...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1083 // create a plugin. The browser will create the plugin process if | 1082 // create a plugin. The browser will create the plugin process if |
| 1084 // necessary, and will return a handle to the channel on success. | 1083 // necessary, and will return a handle to the channel on success. |
| 1085 // On error an empty string is returned. | 1084 // On error an empty string is returned. |
| 1086 IPC_SYNC_MESSAGE_CONTROL3_2(ViewHostMsg_OpenChannelToPlugin, | 1085 IPC_SYNC_MESSAGE_CONTROL3_2(ViewHostMsg_OpenChannelToPlugin, |
| 1087 GURL /* url */, | 1086 GURL /* url */, |
| 1088 std::string /* mime_type */, | 1087 std::string /* mime_type */, |
| 1089 std::wstring /* locale */, | 1088 std::wstring /* locale */, |
| 1090 IPC::ChannelHandle /* handle to channel */, | 1089 IPC::ChannelHandle /* handle to channel */, |
| 1091 WebPluginInfo /* info */) | 1090 WebPluginInfo /* info */) |
| 1092 | 1091 |
| 1093 // A renderer sends this to the browser process when it wants to start | |
| 1094 // a new instance of the Native Client process. The browser will launch | |
| 1095 // the process and return a handle to an IMC channel. | |
| 1096 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_LaunchNaCl, | |
| 1097 int /* channel number */, | |
| 1098 nacl::FileDescriptor /* handle - one side | |
| 1099 of a socket pair */) | |
| 1100 | |
| 1101 #if defined(OS_LINUX) | 1092 #if defined(OS_LINUX) |
| 1102 // A renderer sends this when it needs a browser-side widget for | 1093 // A renderer sends this when it needs a browser-side widget for |
| 1103 // hosting a windowed plugin. id is the XID of the plugin window, for which | 1094 // hosting a windowed plugin. id is the XID of the plugin window, for which |
| 1104 // the container is created. | 1095 // the container is created. |
| 1105 IPC_SYNC_MESSAGE_ROUTED1_0(ViewHostMsg_CreatePluginContainer, | 1096 IPC_SYNC_MESSAGE_ROUTED1_0(ViewHostMsg_CreatePluginContainer, |
| 1106 gfx::PluginWindowHandle /* id */) | 1097 gfx::PluginWindowHandle /* id */) |
| 1107 | 1098 |
| 1108 // Destroy a plugin container previously created using CreatePluginContainer. | 1099 // Destroy a plugin container previously created using CreatePluginContainer. |
| 1109 // id is the XID of the plugin window corresponding to the container that is | 1100 // id is the XID of the plugin window corresponding to the container that is |
| 1110 // to be destroyed. | 1101 // to be destroyed. |
| (...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1768 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileAttributes, | 1759 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileAttributes, |
| 1769 FilePath /* the name of the file */, | 1760 FilePath /* the name of the file */, |
| 1770 int32 /* a unique message ID */) | 1761 int32 /* a unique message ID */) |
| 1771 | 1762 |
| 1772 // Asks the browser process to return the size of a DB file | 1763 // Asks the browser process to return the size of a DB file |
| 1773 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileSize, | 1764 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileSize, |
| 1774 FilePath /* the name of the file */, | 1765 FilePath /* the name of the file */, |
| 1775 int32 /* a unique message ID */) | 1766 int32 /* a unique message ID */) |
| 1776 | 1767 |
| 1777 IPC_END_MESSAGES(ViewHost) | 1768 IPC_END_MESSAGES(ViewHost) |
| OLD | NEW |