| 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 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1243 IPC::PlatformFileForTransit /* file handle */) | 1243 IPC::PlatformFileForTransit /* file handle */) |
| 1244 | 1244 |
| 1245 // Temporary message to diagnose an unexpected condition in WebContentsImpl. | 1245 // Temporary message to diagnose an unexpected condition in WebContentsImpl. |
| 1246 IPC_MESSAGE_CONTROL1(ViewMsg_TempCrashWithData, | 1246 IPC_MESSAGE_CONTROL1(ViewMsg_TempCrashWithData, |
| 1247 GURL /* data */) | 1247 GURL /* data */) |
| 1248 | 1248 |
| 1249 // Change the accessibility mode in the renderer process. | 1249 // Change the accessibility mode in the renderer process. |
| 1250 IPC_MESSAGE_ROUTED1(ViewMsg_SetAccessibilityMode, | 1250 IPC_MESSAGE_ROUTED1(ViewMsg_SetAccessibilityMode, |
| 1251 AccessibilityMode) | 1251 AccessibilityMode) |
| 1252 | 1252 |
| 1253 // Request for the renderer to determine if the document contains any image |
| 1254 // elements. The id should be passed in the response message so the response |
| 1255 // can be associated with the request. |
| 1256 IPC_MESSAGE_ROUTED1(ViewMsg_DocumentHasImages, |
| 1257 int /* id */) |
| 1258 |
| 1253 // ----------------------------------------------------------------------------- | 1259 // ----------------------------------------------------------------------------- |
| 1254 // Messages sent from the renderer to the browser. | 1260 // Messages sent from the renderer to the browser. |
| 1255 | 1261 |
| 1256 // Sent by the renderer when it is creating a new window. The browser creates | 1262 // Sent by the renderer when it is creating a new window. The browser creates |
| 1257 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is | 1263 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is |
| 1258 // MSG_ROUTING_NONE, the view couldn't be created. | 1264 // MSG_ROUTING_NONE, the view couldn't be created. |
| 1259 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_CreateWindow, | 1265 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_CreateWindow, |
| 1260 ViewHostMsg_CreateWindow_Params, | 1266 ViewHostMsg_CreateWindow_Params, |
| 1261 int /* route_id */, | 1267 int /* route_id */, |
| 1262 int32 /* surface_id */, | 1268 int32 /* surface_id */, |
| (...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1896 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits, | 1902 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits, |
| 1897 int /* minimum_percent */, | 1903 int /* minimum_percent */, |
| 1898 int /* maximum_percent */, | 1904 int /* maximum_percent */, |
| 1899 bool /* remember */) | 1905 bool /* remember */) |
| 1900 | 1906 |
| 1901 // Notify the browser that this render process can or can't be suddenly | 1907 // Notify the browser that this render process can or can't be suddenly |
| 1902 // terminated. | 1908 // terminated. |
| 1903 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, | 1909 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, |
| 1904 bool /* enabled */) | 1910 bool /* enabled */) |
| 1905 | 1911 |
| 1912 // Response to ViewMSg_DocumentHasImages request. |
| 1913 IPC_MESSAGE_ROUTED2(ViewHostMsg_DocumentHasImagesResponse, |
| 1914 int, /* id */ |
| 1915 bool /* has_images */) |
| 1916 |
| 1906 #if defined(OS_MACOSX) | 1917 #if defined(OS_MACOSX) |
| 1907 // On OSX, we cannot allocated shared memory from within the sandbox, so | 1918 // On OSX, we cannot allocated shared memory from within the sandbox, so |
| 1908 // this call exists for the renderer to ask the browser to allocate memory | 1919 // this call exists for the renderer to ask the browser to allocate memory |
| 1909 // on its behalf. We return a file descriptor to the POSIX shared memory. | 1920 // on its behalf. We return a file descriptor to the POSIX shared memory. |
| 1910 // If the |cache_in_browser| flag is |true|, then a copy of the shmem is kept | 1921 // If the |cache_in_browser| flag is |true|, then a copy of the shmem is kept |
| 1911 // by the browser, and it is the caller's repsonsibility to send a | 1922 // by the browser, and it is the caller's repsonsibility to send a |
| 1912 // ViewHostMsg_FreeTransportDIB message in order to release the cached shmem. | 1923 // ViewHostMsg_FreeTransportDIB message in order to release the cached shmem. |
| 1913 // In all cases, the caller is responsible for deleting the resulting | 1924 // In all cases, the caller is responsible for deleting the resulting |
| 1914 // TransportDIB. | 1925 // TransportDIB. |
| 1915 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_AllocTransportDIB, | 1926 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_AllocTransportDIB, |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2104 // (according to the value of is_hung). The browser can give the user the | 2115 // (according to the value of is_hung). The browser can give the user the |
| 2105 // option of killing the plugin. | 2116 // option of killing the plugin. |
| 2106 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung, | 2117 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung, |
| 2107 int /* plugin_child_id */, | 2118 int /* plugin_child_id */, |
| 2108 FilePath /* path */, | 2119 FilePath /* path */, |
| 2109 bool /* is_hung */) | 2120 bool /* is_hung */) |
| 2110 | 2121 |
| 2111 // Screen was rotated. Dispatched to the onorientationchange javascript API. | 2122 // Screen was rotated. Dispatched to the onorientationchange javascript API. |
| 2112 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent, | 2123 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent, |
| 2113 int /* orientation */) | 2124 int /* orientation */) |
| OLD | NEW |