| 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 1243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1254 IPC::PlatformFileForTransit /* file handle */) | 1254 IPC::PlatformFileForTransit /* file handle */) |
| 1255 | 1255 |
| 1256 // Temporary message to diagnose an unexpected condition in WebContentsImpl. | 1256 // Temporary message to diagnose an unexpected condition in WebContentsImpl. |
| 1257 IPC_MESSAGE_CONTROL1(ViewMsg_TempCrashWithData, | 1257 IPC_MESSAGE_CONTROL1(ViewMsg_TempCrashWithData, |
| 1258 GURL /* data */) | 1258 GURL /* data */) |
| 1259 | 1259 |
| 1260 // Change the accessibility mode in the renderer process. | 1260 // Change the accessibility mode in the renderer process. |
| 1261 IPC_MESSAGE_ROUTED1(ViewMsg_SetAccessibilityMode, | 1261 IPC_MESSAGE_ROUTED1(ViewMsg_SetAccessibilityMode, |
| 1262 AccessibilityMode) | 1262 AccessibilityMode) |
| 1263 | 1263 |
| 1264 // Request for the renderer to determine if the document contains any image |
| 1265 // elements. The id should be passed in the response message so the response |
| 1266 // can be associated with the request. |
| 1267 IPC_MESSAGE_ROUTED1(ViewMsg_DocumentHasImages, |
| 1268 int /* id */) |
| 1269 |
| 1264 // ----------------------------------------------------------------------------- | 1270 // ----------------------------------------------------------------------------- |
| 1265 // Messages sent from the renderer to the browser. | 1271 // Messages sent from the renderer to the browser. |
| 1266 | 1272 |
| 1267 // Sent by the renderer when it is creating a new window. The browser creates | 1273 // Sent by the renderer when it is creating a new window. The browser creates |
| 1268 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is | 1274 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is |
| 1269 // MSG_ROUTING_NONE, the view couldn't be created. | 1275 // MSG_ROUTING_NONE, the view couldn't be created. |
| 1270 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_CreateWindow, | 1276 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_CreateWindow, |
| 1271 ViewHostMsg_CreateWindow_Params, | 1277 ViewHostMsg_CreateWindow_Params, |
| 1272 int /* route_id */, | 1278 int /* route_id */, |
| 1273 int32 /* surface_id */, | 1279 int32 /* surface_id */, |
| (...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1907 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits, | 1913 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits, |
| 1908 int /* minimum_percent */, | 1914 int /* minimum_percent */, |
| 1909 int /* maximum_percent */, | 1915 int /* maximum_percent */, |
| 1910 bool /* remember */) | 1916 bool /* remember */) |
| 1911 | 1917 |
| 1912 // Notify the browser that this render process can or can't be suddenly | 1918 // Notify the browser that this render process can or can't be suddenly |
| 1913 // terminated. | 1919 // terminated. |
| 1914 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, | 1920 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, |
| 1915 bool /* enabled */) | 1921 bool /* enabled */) |
| 1916 | 1922 |
| 1923 // Response to ViewMSg_DocumentHasImages request. |
| 1924 IPC_MESSAGE_ROUTED2(ViewHostMsg_DocumentHasImagesResponse, |
| 1925 int, /* id */ |
| 1926 bool /* has_images */) |
| 1927 |
| 1917 #if defined(OS_MACOSX) | 1928 #if defined(OS_MACOSX) |
| 1918 // On OSX, we cannot allocated shared memory from within the sandbox, so | 1929 // On OSX, we cannot allocated shared memory from within the sandbox, so |
| 1919 // this call exists for the renderer to ask the browser to allocate memory | 1930 // this call exists for the renderer to ask the browser to allocate memory |
| 1920 // on its behalf. We return a file descriptor to the POSIX shared memory. | 1931 // on its behalf. We return a file descriptor to the POSIX shared memory. |
| 1921 // If the |cache_in_browser| flag is |true|, then a copy of the shmem is kept | 1932 // If the |cache_in_browser| flag is |true|, then a copy of the shmem is kept |
| 1922 // by the browser, and it is the caller's repsonsibility to send a | 1933 // by the browser, and it is the caller's repsonsibility to send a |
| 1923 // ViewHostMsg_FreeTransportDIB message in order to release the cached shmem. | 1934 // ViewHostMsg_FreeTransportDIB message in order to release the cached shmem. |
| 1924 // In all cases, the caller is responsible for deleting the resulting | 1935 // In all cases, the caller is responsible for deleting the resulting |
| 1925 // TransportDIB. | 1936 // TransportDIB. |
| 1926 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_AllocTransportDIB, | 1937 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_AllocTransportDIB, |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2115 // (according to the value of is_hung). The browser can give the user the | 2126 // (according to the value of is_hung). The browser can give the user the |
| 2116 // option of killing the plugin. | 2127 // option of killing the plugin. |
| 2117 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung, | 2128 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung, |
| 2118 int /* plugin_child_id */, | 2129 int /* plugin_child_id */, |
| 2119 FilePath /* path */, | 2130 FilePath /* path */, |
| 2120 bool /* is_hung */) | 2131 bool /* is_hung */) |
| 2121 | 2132 |
| 2122 // Screen was rotated. Dispatched to the onorientationchange javascript API. | 2133 // Screen was rotated. Dispatched to the onorientationchange javascript API. |
| 2123 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent, | 2134 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent, |
| 2124 int /* orientation */) | 2135 int /* orientation */) |
| OLD | NEW |