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

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

Issue 11368019: Add support for external out-of-process PPAPI plugins in the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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 "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 1908 matching lines...) Expand 10 before | Expand all | Expand 10 after
1919 // process. This ID is valid only in the context of the browser process and is 1919 // process. This ID is valid only in the context of the browser process and is
1920 // used to identify the proper process when the renderer notifies it that the 1920 // used to identify the proper process when the renderer notifies it that the
1921 // plugin is hung. 1921 // plugin is hung.
1922 // 1922 //
1923 // On error an empty string and null handles are returned. 1923 // On error an empty string and null handles are returned.
1924 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_OpenChannelToPepperPlugin, 1924 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_OpenChannelToPepperPlugin,
1925 FilePath /* path */, 1925 FilePath /* path */,
1926 IPC::ChannelHandle /* handle to channel */, 1926 IPC::ChannelHandle /* handle to channel */,
1927 int /* plugin_child_id */) 1927 int /* plugin_child_id */)
1928 1928
1929 // Notification that a native (non-NaCl) plugin has created a new plugin 1929 // Notification that a plugin has created a new plugin instance. The parameters
1930 // instance. The parameters indicate the plugin process ID that we're creating 1930 // indicate the plugin process ID that we're creating the instance for, and the
1931 // the instance for, and the routing ID of the render view that the plugin 1931 // routing ID of the render view that the plugin instance is associated with.
1932 // instance is associated with. This allows us to create a mapping in the 1932 // This allows us to create a mapping in the browser process for what objects a
1933 // browser process for what objects a given PP_Instance is associated with. 1933 // given PP_Instance is associated with.
1934 // 1934 //
1935 // This message must be sync even though it returns no parameters to avoid 1935 // This message must be sync even though it returns no parameters to avoid
1936 // a race condition with the plugin process. The plugin process sends messages 1936 // a race condition with the plugin process. The plugin process sends messages
1937 // to the browser that assume the browser knows about the instance. We need to 1937 // to the browser that assume the browser knows about the instance. We need to
1938 // sure that the browser actually knows about the instance before we tell the 1938 // make sure that the browser actually knows about the instance before we tell
1939 // plugin to run. 1939 // the plugin to run.
1940 IPC_SYNC_MESSAGE_CONTROL3_0(ViewHostMsg_DidCreateOutOfProcessPepperInstance, 1940 IPC_SYNC_MESSAGE_CONTROL4_0(ViewHostMsg_DidCreateOutOfProcessPepperInstance,
1941 int /* plugin_child_id */, 1941 int /* plugin_child_id */,
1942 int32 /* pp_instance */, 1942 int32 /* pp_instance */,
1943 int /* view_routing_id */) 1943 int /* view_routing_id */,
1944 bool /* is_external */)
1944 1945
1945 // Notification that a native (non-NaCl) plugin has destroyed an instance. This 1946 // Notification that a plugin has destroyed an instance. This is the opposite of
1946 // is the opposite if the "DidCreate" version above. 1947 // the "DidCreate" message above.
1947 IPC_MESSAGE_CONTROL2(ViewHostMsg_DidDeleteOutOfProcessPepperInstance, 1948 IPC_MESSAGE_CONTROL3(ViewHostMsg_DidDeleteOutOfProcessPepperInstance,
1948 int /* plugin_child_id */, 1949 int /* plugin_child_id */,
1949 int32 /* pp_instance */) 1950 int32 /* pp_instance */,
1951 bool /* is_external */)
1950 1952
1951 // A renderer sends this to the browser process when it wants to 1953 // A renderer sends this to the browser process when it wants to
1952 // create a ppapi broker. The browser will create the broker process 1954 // create a ppapi broker. The browser will create the broker process
1953 // if necessary, and will return a handle to the channel on success. 1955 // if necessary, and will return a handle to the channel on success.
1954 // On error an empty string is returned. 1956 // On error an empty string is returned.
1955 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated. 1957 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated.
1956 IPC_MESSAGE_CONTROL3(ViewHostMsg_OpenChannelToPpapiBroker, 1958 IPC_MESSAGE_CONTROL3(ViewHostMsg_OpenChannelToPpapiBroker,
1957 int /* routing_id */, 1959 int /* routing_id */,
1958 int /* request_id */, 1960 int /* request_id */,
1959 FilePath /* path */) 1961 FilePath /* path */)
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
2384 IPC_MESSAGE_ROUTED1(ViewHostMsg_StartContentIntent, 2386 IPC_MESSAGE_ROUTED1(ViewHostMsg_StartContentIntent,
2385 GURL /* content_url */) 2387 GURL /* content_url */)
2386 #endif 2388 #endif
2387 2389
2388 // Notifies that multiple touch targets may have been pressed, and to show 2390 // Notifies that multiple touch targets may have been pressed, and to show
2389 // the disambiguation popup. 2391 // the disambiguation popup.
2390 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDisambiguationPopup, 2392 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDisambiguationPopup,
2391 gfx::Rect, /* Border of touched targets */ 2393 gfx::Rect, /* Border of touched targets */
2392 gfx::Size, /* Size of zoomed image */ 2394 gfx::Size, /* Size of zoomed image */
2393 TransportDIB::Id /* DIB of zoomed image */) 2395 TransportDIB::Id /* DIB of zoomed image */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698