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

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

Issue 11722017: Use an explicit PID for duplicating Pepper handles rather than the Channel's. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
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 "base/string16.h" 10 #include "base/string16.h"
(...skipping 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after
1207 IPC::PlatformFileForTransit /* file descriptor */, 1207 IPC::PlatformFileForTransit /* file descriptor */,
1208 int /* message_id */) 1208 int /* message_id */)
1209 1209
1210 // Tells the renderer that the network state has changed and that 1210 // Tells the renderer that the network state has changed and that
1211 // window.navigator.onLine should be updated for all WebViews. 1211 // window.navigator.onLine should be updated for all WebViews.
1212 IPC_MESSAGE_CONTROL1(ViewMsg_NetworkStateChanged, 1212 IPC_MESSAGE_CONTROL1(ViewMsg_NetworkStateChanged,
1213 bool /* online */) 1213 bool /* online */)
1214 1214
1215 // Reply to ViewHostMsg_OpenChannelToPpapiBroker 1215 // Reply to ViewHostMsg_OpenChannelToPpapiBroker
1216 // Tells the renderer that the channel to the broker has been created. 1216 // Tells the renderer that the channel to the broker has been created.
1217 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated, 1217 IPC_MESSAGE_ROUTED3(ViewMsg_PpapiBrokerChannelCreated,
1218 int /* request_id */, 1218 int /* request_id */,
1219 base::ProcessId /* broker_pid */,
1219 IPC::ChannelHandle /* handle */) 1220 IPC::ChannelHandle /* handle */)
1220 1221
1221 // Reply to ViewHostMsg_RequestPpapiBrokerPermission. 1222 // Reply to ViewHostMsg_RequestPpapiBrokerPermission.
1222 // Tells the renderer whether permission to access to PPAPI broker was granted 1223 // Tells the renderer whether permission to access to PPAPI broker was granted
1223 // or not. 1224 // or not.
1224 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerPermissionResult, 1225 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerPermissionResult,
1225 int /* request_id */, 1226 int /* request_id */,
1226 bool /* result */) 1227 bool /* result */)
1227 1228
1228 // Tells the renderer to empty its plugin list cache, optional reloading 1229 // Tells the renderer to empty its plugin list cache, optional reloading
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
1851 // A renderer sends this to the browser process when it wants to create a ppapi 1852 // A renderer sends this to the browser process when it wants to create a ppapi
1852 // plugin. The browser will create the plugin process if necessary, and will 1853 // plugin. The browser will create the plugin process if necessary, and will
1853 // return a handle to the channel on success. 1854 // return a handle to the channel on success.
1854 // 1855 //
1855 // The plugin_child_id is the ChildProcessHost ID assigned in the browser 1856 // The plugin_child_id is the ChildProcessHost ID assigned in the browser
1856 // process. This ID is valid only in the context of the browser process and is 1857 // process. This ID is valid only in the context of the browser process and is
1857 // used to identify the proper process when the renderer notifies it that the 1858 // used to identify the proper process when the renderer notifies it that the
1858 // plugin is hung. 1859 // plugin is hung.
1859 // 1860 //
1860 // On error an empty string and null handles are returned. 1861 // On error an empty string and null handles are returned.
1861 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_OpenChannelToPepperPlugin, 1862 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_OpenChannelToPepperPlugin,
1862 FilePath /* path */, 1863 FilePath /* path */,
1863 IPC::ChannelHandle /* handle to channel */, 1864 IPC::ChannelHandle /* handle to channel */,
1865 base::ProcessId /* plugin_pid */,
1864 int /* plugin_child_id */) 1866 int /* plugin_child_id */)
1865 1867
1866 // Notification that a plugin has created a new plugin instance. The parameters 1868 // Notification that a plugin has created a new plugin instance. The parameters
1867 // indicate: 1869 // indicate:
1868 // -The plugin process ID that we're creating the instance for. 1870 // -The plugin process ID that we're creating the instance for.
1869 // -The instance ID of the instance being created. 1871 // -The instance ID of the instance being created.
1870 // -A PepperRendererInstanceData struct which contains properties from the 1872 // -A PepperRendererInstanceData struct which contains properties from the
1871 // renderer which are associated with the plugin instance. This includes the 1873 // renderer which are associated with the plugin instance. This includes the
1872 // routing ID of the associated render view and the URL of plugin. 1874 // routing ID of the associated render view and the URL of plugin.
1873 // -Whether the plugin we're creating an instance for is external or internal. 1875 // -Whether the plugin we're creating an instance for is external or internal.
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
2352 int /* arb_robustness_status_code */) 2354 int /* arb_robustness_status_code */)
2353 2355
2354 #if defined(OS_WIN) 2356 #if defined(OS_WIN)
2355 // Request that the given font characters be loaded by the browser so it's 2357 // Request that the given font characters be loaded by the browser so it's
2356 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters 2358 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters
2357 // for details. 2359 // for details.
2358 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, 2360 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters,
2359 LOGFONT /* font_data */, 2361 LOGFONT /* font_data */,
2360 string16 /* characters */) 2362 string16 /* characters */)
2361 #endif 2363 #endif
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | content/ppapi_plugin/ppapi_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698