| 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" | 
|    24 #include "chrome/common/notification_type.h" |    25 #include "chrome/common/notification_type.h" | 
|    25 #include "chrome/common/transport_dib.h" |    26 #include "chrome/common/transport_dib.h" | 
|    26 #include "chrome/common/view_types.h" |    27 #include "chrome/common/view_types.h" | 
|    27 #include "ipc/ipc_channel_handle.h" |    28 #include "ipc/ipc_channel_handle.h" | 
|    28 #include "ipc/ipc_message_macros.h" |    29 #include "ipc/ipc_message_macros.h" | 
|    29 #include "third_party/skia/include/core/SkBitmap.h" |    30 #include "third_party/skia/include/core/SkBitmap.h" | 
|    30 #include "webkit/appcache/appcache_interfaces.h" |    31 #include "webkit/appcache/appcache_interfaces.h" | 
|    31 #include "webkit/glue/dom_operations.h" |    32 #include "webkit/glue/dom_operations.h" | 
|    32 #include "webkit/glue/webcursor.h" |    33 #include "webkit/glue/webcursor.h" | 
|    33 #include "webkit/glue/webplugin.h" |    34 #include "webkit/glue/webplugin.h" | 
| (...skipping 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1072   // create a plugin.  The browser will create the plugin process if |  1073   // create a plugin.  The browser will create the plugin process if | 
|  1073   // necessary, and will return a handle to the channel on success. |  1074   // necessary, and will return a handle to the channel on success. | 
|  1074   // On error an empty string is returned. |  1075   // On error an empty string is returned. | 
|  1075   IPC_SYNC_MESSAGE_CONTROL3_2(ViewHostMsg_OpenChannelToPlugin, |  1076   IPC_SYNC_MESSAGE_CONTROL3_2(ViewHostMsg_OpenChannelToPlugin, | 
|  1076                               GURL /* url */, |  1077                               GURL /* url */, | 
|  1077                               std::string /* mime_type */, |  1078                               std::string /* mime_type */, | 
|  1078                               std::wstring /* locale */, |  1079                               std::wstring /* locale */, | 
|  1079                               IPC::ChannelHandle /* handle to channel */, |  1080                               IPC::ChannelHandle /* handle to channel */, | 
|  1080                               WebPluginInfo /* info */) |  1081                               WebPluginInfo /* info */) | 
|  1081  |  1082  | 
 |  1083   // A renderer sends this to the browser process when it wants to start | 
 |  1084   // a new instance of the Native Client process. The browser will launch | 
 |  1085   // the process and return a handle to an IMC channel. | 
 |  1086   IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_LaunchNaCl, | 
 |  1087                               int /* channel number, usually 5 */, | 
 |  1088                               nacl::FileDescriptor /* handle - one side | 
 |  1089                                                       of a socket pair */) | 
 |  1090  | 
|  1082 #if defined(OS_LINUX) |  1091 #if defined(OS_LINUX) | 
|  1083   // A renderer sends this when it needs a browser-side widget for |  1092   // A renderer sends this when it needs a browser-side widget for | 
|  1084   // hosting a windowed plugin. id is the XID of the plugin window, for which |  1093   // hosting a windowed plugin. id is the XID of the plugin window, for which | 
|  1085   // the container is created. |  1094   // the container is created. | 
|  1086   IPC_SYNC_MESSAGE_ROUTED1_0(ViewHostMsg_CreatePluginContainer, |  1095   IPC_SYNC_MESSAGE_ROUTED1_0(ViewHostMsg_CreatePluginContainer, | 
|  1087                              gfx::PluginWindowHandle /* id */) |  1096                              gfx::PluginWindowHandle /* id */) | 
|  1088  |  1097  | 
|  1089   // Destroy a plugin container previously created using CreatePluginContainer. |  1098   // Destroy a plugin container previously created using CreatePluginContainer. | 
|  1090   // id is the XID of the plugin window corresponding to the container that is |  1099   // id is the XID of the plugin window corresponding to the container that is | 
|  1091   // to be destroyed. |  1100   // to be destroyed. | 
| (...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1749   IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileAttributes, |  1758   IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileAttributes, | 
|  1750                        FilePath /* the name of the file */, |  1759                        FilePath /* the name of the file */, | 
|  1751                        int32 /* a unique message ID */) |  1760                        int32 /* a unique message ID */) | 
|  1752  |  1761  | 
|  1753   // Asks the browser process to return the size of a DB file |  1762   // Asks the browser process to return the size of a DB file | 
|  1754   IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileSize, |  1763   IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileSize, | 
|  1755                        FilePath /* the name of the file */, |  1764                        FilePath /* the name of the file */, | 
|  1756                        int32 /* a unique message ID */) |  1765                        int32 /* a unique message ID */) | 
|  1757  |  1766  | 
|  1758 IPC_END_MESSAGES(ViewHost) |  1767 IPC_END_MESSAGES(ViewHost) | 
| OLD | NEW |