Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1203)

Side by Side Diff: content/common/view_messages.h

Issue 10378057: Broker out PPAPI handle duplication (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/common/fileapi/file_system_dispatcher.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after
1150 IPC::PlatformFileForTransit /* file descriptor */, 1150 IPC::PlatformFileForTransit /* file descriptor */,
1151 int /* message_id */) 1151 int /* message_id */)
1152 1152
1153 // Tells the renderer that the network state has changed and that 1153 // Tells the renderer that the network state has changed and that
1154 // window.navigator.onLine should be updated for all WebViews. 1154 // window.navigator.onLine should be updated for all WebViews.
1155 IPC_MESSAGE_CONTROL1(ViewMsg_NetworkStateChanged, 1155 IPC_MESSAGE_CONTROL1(ViewMsg_NetworkStateChanged,
1156 bool /* online */) 1156 bool /* online */)
1157 1157
1158 // Reply to ViewHostMsg_OpenChannelToPpapiBroker 1158 // Reply to ViewHostMsg_OpenChannelToPpapiBroker
1159 // Tells the renderer that the channel to the broker has been created. 1159 // Tells the renderer that the channel to the broker has been created.
1160 IPC_MESSAGE_ROUTED3(ViewMsg_PpapiBrokerChannelCreated, 1160 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated,
1161 int /* request_id */, 1161 int /* request_id */,
1162 base::ProcessHandle /* broker_process_handle */,
1163 IPC::ChannelHandle /* handle */) 1162 IPC::ChannelHandle /* handle */)
1164 1163
1165 // Tells the renderer to empty its plugin list cache, optional reloading 1164 // Tells the renderer to empty its plugin list cache, optional reloading
1166 // pages containing plugins. 1165 // pages containing plugins.
1167 IPC_MESSAGE_CONTROL1(ViewMsg_PurgePluginListCache, 1166 IPC_MESSAGE_CONTROL1(ViewMsg_PurgePluginListCache,
1168 bool /* reload_pages */) 1167 bool /* reload_pages */)
1169 1168
1170 // Sent to the renderer when a popup window should no longer count against 1169 // Sent to the renderer when a popup window should no longer count against
1171 // the current popup count (either because it's not a popup or because it was 1170 // the current popup count (either because it's not a popup or because it was
1172 // a generated by a user action). 1171 // a generated by a user action).
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
1663 // A renderer sends this to the browser process when it wants to create a ppapi 1662 // A renderer sends this to the browser process when it wants to create a ppapi
1664 // plugin. The browser will create the plugin process if necessary, and will 1663 // plugin. The browser will create the plugin process if necessary, and will
1665 // return a handle to the channel on success. 1664 // return a handle to the channel on success.
1666 // 1665 //
1667 // The plugin_child_id is the ChildProcessHost ID assigned in the browser 1666 // The plugin_child_id is the ChildProcessHost ID assigned in the browser
1668 // process. This ID is valid only in the context of the browser process and is 1667 // process. This ID is valid only in the context of the browser process and is
1669 // used to identify the proper process when the renderer notifies it that the 1668 // used to identify the proper process when the renderer notifies it that the
1670 // plugin is hung. 1669 // plugin is hung.
1671 // 1670 //
1672 // On error an empty string and null handles are returned. 1671 // On error an empty string and null handles are returned.
1673 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_OpenChannelToPepperPlugin, 1672 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_OpenChannelToPepperPlugin,
1674 FilePath /* path */, 1673 FilePath /* path */,
1675 base::ProcessHandle /* plugin_process_handle */,
1676 IPC::ChannelHandle /* handle to channel */, 1674 IPC::ChannelHandle /* handle to channel */,
1677 int /* plugin_child_id */) 1675 int /* plugin_child_id */)
1678 1676
1679 // A renderer sends this to the browser process when it wants to 1677 // A renderer sends this to the browser process when it wants to
1680 // create a ppapi broker. The browser will create the broker process 1678 // create a ppapi broker. The browser will create the broker process
1681 // if necessary, and will return a handle to the channel on success. 1679 // if necessary, and will return a handle to the channel on success.
1682 // On error an empty string is returned. 1680 // On error an empty string is returned.
1683 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated. 1681 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated.
1684 IPC_MESSAGE_CONTROL3(ViewHostMsg_OpenChannelToPpapiBroker, 1682 IPC_MESSAGE_CONTROL3(ViewHostMsg_OpenChannelToPpapiBroker,
1685 int /* routing_id */, 1683 int /* routing_id */,
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
2028 int /* automation_id */) 2026 int /* automation_id */)
2029 2027
2030 // Sent to the browser when the renderer detects it is blocked on a pepper 2028 // Sent to the browser when the renderer detects it is blocked on a pepper
2031 // plugin message for too long. This is also sent when it becomes unhung 2029 // plugin message for too long. This is also sent when it becomes unhung
2032 // (according to the value of is_hung). The browser can give the user the 2030 // (according to the value of is_hung). The browser can give the user the
2033 // option of killing the plugin. 2031 // option of killing the plugin.
2034 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung, 2032 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung,
2035 int /* plugin_child_id */, 2033 int /* plugin_child_id */,
2036 FilePath /* path */, 2034 FilePath /* path */,
2037 bool /* is_hung */) 2035 bool /* is_hung */)
OLDNEW
« no previous file with comments | « content/common/fileapi/file_system_dispatcher.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698