OLD | NEW |
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 1929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1940 // process. This ID is valid only in the context of the browser process and is | 1940 // process. This ID is valid only in the context of the browser process and is |
1941 // used to identify the proper process when the renderer notifies it that the | 1941 // used to identify the proper process when the renderer notifies it that the |
1942 // plugin is hung. | 1942 // plugin is hung. |
1943 // | 1943 // |
1944 // On error an empty string and null handles are returned. | 1944 // On error an empty string and null handles are returned. |
1945 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_OpenChannelToPepperPlugin, | 1945 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_OpenChannelToPepperPlugin, |
1946 FilePath /* path */, | 1946 FilePath /* path */, |
1947 IPC::ChannelHandle /* handle to channel */, | 1947 IPC::ChannelHandle /* handle to channel */, |
1948 int /* plugin_child_id */) | 1948 int /* plugin_child_id */) |
1949 | 1949 |
1950 // Notification that a native (non-NaCl) plugin has created a new plugin | 1950 // Notification that a plugin has created a new plugin instance. The parameters |
1951 // instance. The parameters indicate the plugin process ID that we're creating | 1951 // indicate the plugin process ID that we're creating the instance for, and the |
1952 // the instance for, and the routing ID of the render view that the plugin | 1952 // routing ID of the render view that the plugin instance is associated with. |
1953 // instance is associated with. This allows us to create a mapping in the | 1953 // This allows us to create a mapping in the browser process for what objects a |
1954 // browser process for what objects a given PP_Instance is associated with. | 1954 // given PP_Instance is associated with. |
1955 // | 1955 // |
1956 // This message must be sync even though it returns no parameters to avoid | 1956 // This message must be sync even though it returns no parameters to avoid |
1957 // a race condition with the plugin process. The plugin process sends messages | 1957 // a race condition with the plugin process. The plugin process sends messages |
1958 // to the browser that assume the browser knows about the instance. We need to | 1958 // to the browser that assume the browser knows about the instance. We need to |
1959 // sure that the browser actually knows about the instance before we tell the | 1959 // make sure that the browser actually knows about the instance before we tell |
1960 // plugin to run. | 1960 // the plugin to run. |
1961 IPC_SYNC_MESSAGE_CONTROL3_0(ViewHostMsg_DidCreateOutOfProcessPepperInstance, | 1961 IPC_SYNC_MESSAGE_CONTROL4_0(ViewHostMsg_DidCreateOutOfProcessPepperInstance, |
1962 int /* plugin_child_id */, | 1962 int /* plugin_child_id */, |
1963 int32 /* pp_instance */, | 1963 int32 /* pp_instance */, |
1964 int /* view_routing_id */) | 1964 int /* view_routing_id */, |
| 1965 bool /* is_external */) |
1965 | 1966 |
1966 // Notification that a native (non-NaCl) plugin has destroyed an instance. This | 1967 // Notification that a plugin has destroyed an instance. This is the opposite of |
1967 // is the opposite if the "DidCreate" version above. | 1968 // the "DidCreate" message above. |
1968 IPC_MESSAGE_CONTROL2(ViewHostMsg_DidDeleteOutOfProcessPepperInstance, | 1969 IPC_MESSAGE_CONTROL3(ViewHostMsg_DidDeleteOutOfProcessPepperInstance, |
1969 int /* plugin_child_id */, | 1970 int /* plugin_child_id */, |
1970 int32 /* pp_instance */) | 1971 int32 /* pp_instance */, |
| 1972 bool /* is_external */) |
1971 | 1973 |
1972 // A renderer sends this to the browser process when it wants to | 1974 // A renderer sends this to the browser process when it wants to |
1973 // create a ppapi broker. The browser will create the broker process | 1975 // create a ppapi broker. The browser will create the broker process |
1974 // if necessary, and will return a handle to the channel on success. | 1976 // if necessary, and will return a handle to the channel on success. |
1975 // On error an empty string is returned. | 1977 // On error an empty string is returned. |
1976 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated. | 1978 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated. |
1977 IPC_MESSAGE_CONTROL3(ViewHostMsg_OpenChannelToPpapiBroker, | 1979 IPC_MESSAGE_CONTROL3(ViewHostMsg_OpenChannelToPpapiBroker, |
1978 int /* routing_id */, | 1980 int /* routing_id */, |
1979 int /* request_id */, | 1981 int /* request_id */, |
1980 FilePath /* path */) | 1982 FilePath /* path */) |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2405 IPC_MESSAGE_ROUTED1(ViewHostMsg_StartContentIntent, | 2407 IPC_MESSAGE_ROUTED1(ViewHostMsg_StartContentIntent, |
2406 GURL /* content_url */) | 2408 GURL /* content_url */) |
2407 #endif | 2409 #endif |
2408 | 2410 |
2409 // Notifies that multiple touch targets may have been pressed, and to show | 2411 // Notifies that multiple touch targets may have been pressed, and to show |
2410 // the disambiguation popup. | 2412 // the disambiguation popup. |
2411 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDisambiguationPopup, | 2413 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDisambiguationPopup, |
2412 gfx::Rect, /* Border of touched targets */ | 2414 gfx::Rect, /* Border of touched targets */ |
2413 gfx::Size, /* Size of zoomed image */ | 2415 gfx::Size, /* Size of zoomed image */ |
2414 TransportDIB::Id /* DIB of zoomed image */) | 2416 TransportDIB::Id /* DIB of zoomed image */) |
OLD | NEW |