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 1890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1901 // process. This ID is valid only in the context of the browser process and is | 1901 // process. This ID is valid only in the context of the browser process and is |
1902 // used to identify the proper process when the renderer notifies it that the | 1902 // used to identify the proper process when the renderer notifies it that the |
1903 // plugin is hung. | 1903 // plugin is hung. |
1904 // | 1904 // |
1905 // On error an empty string and null handles are returned. | 1905 // On error an empty string and null handles are returned. |
1906 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_OpenChannelToPepperPlugin, | 1906 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_OpenChannelToPepperPlugin, |
1907 FilePath /* path */, | 1907 FilePath /* path */, |
1908 IPC::ChannelHandle /* handle to channel */, | 1908 IPC::ChannelHandle /* handle to channel */, |
1909 int /* plugin_child_id */) | 1909 int /* plugin_child_id */) |
1910 | 1910 |
| 1911 // Notification that a native (non-NaCl) plugin has created a new plugin |
| 1912 // instance. The parameters indicate the plugin process ID that we're creating |
| 1913 // the instance for, and the routing ID of the render view that the plugin |
| 1914 // instance is associated with. This allows us to create a mapping in the |
| 1915 // browser process for what objects a given PP_Instance is associated with. |
| 1916 // |
| 1917 // This message must be sync even though it returns no parameters to avoid |
| 1918 // a race condition with the plugin process. The plugin process sends messages |
| 1919 // to the browser that assume the browser knows about the instance. We need to |
| 1920 // sure that the browser actually knows about the instance before we tell the |
| 1921 // plugin to run. |
| 1922 IPC_SYNC_MESSAGE_CONTROL3_0(ViewHostMsg_DidCreateOutOfProcessPepperInstance, |
| 1923 int /* plugin_child_id */, |
| 1924 int32 /* pp_instance */, |
| 1925 int /* view_routing_id */) |
| 1926 |
| 1927 // Notification that a native (non-NaCl) plugin has destroyed an instance. This |
| 1928 // is the opposite if the "DidCreate" version above. |
| 1929 IPC_MESSAGE_CONTROL2(ViewHostMsg_DidDeleteOutOfProcessPepperInstance, |
| 1930 int /* plugin_child_id */, |
| 1931 int32 /* pp_instance */) |
| 1932 |
1911 // A renderer sends this to the browser process when it wants to | 1933 // A renderer sends this to the browser process when it wants to |
1912 // create a ppapi broker. The browser will create the broker process | 1934 // create a ppapi broker. The browser will create the broker process |
1913 // if necessary, and will return a handle to the channel on success. | 1935 // if necessary, and will return a handle to the channel on success. |
1914 // On error an empty string is returned. | 1936 // On error an empty string is returned. |
1915 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated. | 1937 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated. |
1916 IPC_MESSAGE_CONTROL3(ViewHostMsg_OpenChannelToPpapiBroker, | 1938 IPC_MESSAGE_CONTROL3(ViewHostMsg_OpenChannelToPpapiBroker, |
1917 int /* routing_id */, | 1939 int /* routing_id */, |
1918 int /* request_id */, | 1940 int /* request_id */, |
1919 FilePath /* path */) | 1941 FilePath /* path */) |
1920 | 1942 |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2341 // custom normalized fractions of the document size. The rects will be sorted by | 2363 // custom normalized fractions of the document size. The rects will be sorted by |
2342 // frame traversal order starting in the main frame, then by dom order. | 2364 // frame traversal order starting in the main frame, then by dom order. |
2343 // | 2365 // |
2344 // |active_rect| will contain the bounding box of the active find-in-page match | 2366 // |active_rect| will contain the bounding box of the active find-in-page match |
2345 // marker, in similarly normalized coords (or an empty rect if there isn't one). | 2367 // marker, in similarly normalized coords (or an empty rect if there isn't one). |
2346 IPC_MESSAGE_ROUTED3(ViewHostMsg_FindMatchRects_Reply, | 2368 IPC_MESSAGE_ROUTED3(ViewHostMsg_FindMatchRects_Reply, |
2347 int /* version */, | 2369 int /* version */, |
2348 std::vector<gfx::RectF> /* rects */, | 2370 std::vector<gfx::RectF> /* rects */, |
2349 gfx::RectF /* active_rect */) | 2371 gfx::RectF /* active_rect */) |
2350 #endif | 2372 #endif |
OLD | NEW |