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/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
9 #include "base/process/process.h" | 9 #include "base/process/process.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 1213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1224 | 1224 |
1225 // Activate/deactivate the RenderView (i.e., set its controls' tint | 1225 // Activate/deactivate the RenderView (i.e., set its controls' tint |
1226 // accordingly, etc.). | 1226 // accordingly, etc.). |
1227 IPC_MESSAGE_ROUTED1(ViewMsg_SetActive, | 1227 IPC_MESSAGE_ROUTED1(ViewMsg_SetActive, |
1228 bool /* active */) | 1228 bool /* active */) |
1229 | 1229 |
1230 // Response message to ViewHostMsg_CreateShared/DedicatedWorker. | 1230 // Response message to ViewHostMsg_CreateShared/DedicatedWorker. |
1231 // Sent when the worker has started. | 1231 // Sent when the worker has started. |
1232 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerCreated) | 1232 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerCreated) |
1233 | 1233 |
| 1234 // The response to ViewHostMsg_AsyncOpenPepperFile. |
| 1235 IPC_MESSAGE_ROUTED2(ViewMsg_AsyncOpenPepperFile_ACK, |
| 1236 base::PlatformFileError /* error_code */, |
| 1237 IPC::PlatformFileForTransit /* file descriptor */) |
| 1238 |
1234 // Tells the renderer that the network state has changed and that | 1239 // Tells the renderer that the network state has changed and that |
1235 // window.navigator.onLine should be updated for all WebViews. | 1240 // window.navigator.onLine should be updated for all WebViews. |
1236 IPC_MESSAGE_CONTROL1(ViewMsg_NetworkStateChanged, | 1241 IPC_MESSAGE_CONTROL1(ViewMsg_NetworkStateChanged, |
1237 bool /* online */) | 1242 bool /* online */) |
1238 | 1243 |
1239 // Reply to ViewHostMsg_OpenChannelToPpapiBroker | 1244 // Reply to ViewHostMsg_OpenChannelToPpapiBroker |
1240 // Tells the renderer that the channel to the broker has been created. | 1245 // Tells the renderer that the channel to the broker has been created. |
1241 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated, | 1246 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated, |
1242 base::ProcessId /* broker_pid */, | 1247 base::ProcessId /* broker_pid */, |
1243 IPC::ChannelHandle /* handle */) | 1248 IPC::ChannelHandle /* handle */) |
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1918 | 1923 |
1919 // A renderer sends this to the browser process when it wants to | 1924 // A renderer sends this to the browser process when it wants to |
1920 // create a ppapi broker. The browser will create the broker process | 1925 // create a ppapi broker. The browser will create the broker process |
1921 // if necessary, and will return a handle to the channel on success. | 1926 // if necessary, and will return a handle to the channel on success. |
1922 // On error an empty string is returned. | 1927 // On error an empty string is returned. |
1923 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated. | 1928 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated. |
1924 IPC_MESSAGE_CONTROL2(ViewHostMsg_OpenChannelToPpapiBroker, | 1929 IPC_MESSAGE_CONTROL2(ViewHostMsg_OpenChannelToPpapiBroker, |
1925 int /* routing_id */, | 1930 int /* routing_id */, |
1926 base::FilePath /* path */) | 1931 base::FilePath /* path */) |
1927 | 1932 |
| 1933 // Opens a Pepper file asynchronously. The response returns a file descriptor |
| 1934 // and an error code from base/platform_file.h. |
| 1935 IPC_MESSAGE_CONTROL3(ViewHostMsg_AsyncOpenPepperFile, |
| 1936 int /* routing_id */, |
| 1937 base::FilePath /* file path */, |
| 1938 int /* pp_open_flags */) |
| 1939 |
1928 // A renderer sends this to the browser process when it wants to access a PPAPI | 1940 // A renderer sends this to the browser process when it wants to access a PPAPI |
1929 // broker. In contrast to ViewHostMsg_OpenChannelToPpapiBroker, this is called | 1941 // broker. In contrast to ViewHostMsg_OpenChannelToPpapiBroker, this is called |
1930 // for every connection. | 1942 // for every connection. |
1931 // The browser will respond with ViewMsg_PpapiBrokerPermissionResult. | 1943 // The browser will respond with ViewMsg_PpapiBrokerPermissionResult. |
1932 IPC_MESSAGE_ROUTED3(ViewHostMsg_RequestPpapiBrokerPermission, | 1944 IPC_MESSAGE_ROUTED3(ViewHostMsg_RequestPpapiBrokerPermission, |
1933 int /* routing_id */, | 1945 int /* routing_id */, |
1934 GURL /* document_url */, | 1946 GURL /* document_url */, |
1935 base::FilePath /* plugin_path */) | 1947 base::FilePath /* plugin_path */) |
1936 | 1948 |
1937 #if defined(USE_X11) | 1949 #if defined(USE_X11) |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2353 // synchronously (see crbug.com/120597). This IPC message sends the character | 2365 // synchronously (see crbug.com/120597). This IPC message sends the character |
2354 // bounds after every composition change to always have correct bound info. | 2366 // bounds after every composition change to always have correct bound info. |
2355 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2367 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
2356 gfx::Range /* composition range */, | 2368 gfx::Range /* composition range */, |
2357 std::vector<gfx::Rect> /* character bounds */) | 2369 std::vector<gfx::Rect> /* character bounds */) |
2358 #endif | 2370 #endif |
2359 | 2371 |
2360 // Adding a new message? Stick to the sort order above: first platform | 2372 // Adding a new message? Stick to the sort order above: first platform |
2361 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2373 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
2362 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2374 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |