| 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 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 632 | 632 |
| 633 // Renderer-wide preferences. | 633 // Renderer-wide preferences. |
| 634 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences) | 634 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences) |
| 635 | 635 |
| 636 // Preferences for this view. | 636 // Preferences for this view. |
| 637 IPC_STRUCT_MEMBER(WebPreferences, web_preferences) | 637 IPC_STRUCT_MEMBER(WebPreferences, web_preferences) |
| 638 | 638 |
| 639 // The ID of the view to be created. | 639 // The ID of the view to be created. |
| 640 IPC_STRUCT_MEMBER(int32, view_id) | 640 IPC_STRUCT_MEMBER(int32, view_id) |
| 641 | 641 |
| 642 // The ID of the rendering surface. |
| 643 IPC_STRUCT_MEMBER(int32, surface_id) |
| 644 |
| 642 // The session storage namespace ID this view should use. | 645 // The session storage namespace ID this view should use. |
| 643 IPC_STRUCT_MEMBER(int64, session_storage_namespace_id) | 646 IPC_STRUCT_MEMBER(int64, session_storage_namespace_id) |
| 644 | 647 |
| 645 // The name of the frame associated with this view (or empty if none). | 648 // The name of the frame associated with this view (or empty if none). |
| 646 IPC_STRUCT_MEMBER(string16, frame_name) | 649 IPC_STRUCT_MEMBER(string16, frame_name) |
| 647 | 650 |
| 648 // The initial page ID to use for this view, which must be larger than any | 651 // The initial page ID to use for this view, which must be larger than any |
| 649 // existing navigation that might be loaded in the view. Page IDs are unique | 652 // existing navigation that might be loaded in the view. Page IDs are unique |
| 650 // to a view and are only updated by the renderer after this initial value. | 653 // to a view and are only updated by the renderer after this initial value. |
| 651 IPC_STRUCT_MEMBER(int32, next_page_id) | 654 IPC_STRUCT_MEMBER(int32, next_page_id) |
| (...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1184 // Temporary message to diagnose an unexpected condition in TabContents. | 1187 // Temporary message to diagnose an unexpected condition in TabContents. |
| 1185 IPC_MESSAGE_CONTROL1(ViewMsg_TempCrashWithData, | 1188 IPC_MESSAGE_CONTROL1(ViewMsg_TempCrashWithData, |
| 1186 GURL /* data */) | 1189 GURL /* data */) |
| 1187 | 1190 |
| 1188 | 1191 |
| 1189 // Messages sent from the renderer to the browser. | 1192 // Messages sent from the renderer to the browser. |
| 1190 | 1193 |
| 1191 // Sent by the renderer when it is creating a new window. The browser creates | 1194 // Sent by the renderer when it is creating a new window. The browser creates |
| 1192 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is | 1195 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is |
| 1193 // MSG_ROUTING_NONE, the view couldn't be created. | 1196 // MSG_ROUTING_NONE, the view couldn't be created. |
| 1194 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_CreateWindow, | 1197 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_CreateWindow, |
| 1195 ViewHostMsg_CreateWindow_Params, | 1198 ViewHostMsg_CreateWindow_Params, |
| 1196 int /* route_id */, | 1199 int /* route_id */, |
| 1200 int32 /* surface_id */, |
| 1197 int64 /* cloned_session_storage_namespace_id */) | 1201 int64 /* cloned_session_storage_namespace_id */) |
| 1198 | 1202 |
| 1199 // Similar to ViewHostMsg_CreateWindow, except used for sub-widgets, like | 1203 // Similar to ViewHostMsg_CreateWindow, except used for sub-widgets, like |
| 1200 // <select> dropdowns. This message is sent to the TabContents that | 1204 // <select> dropdowns. This message is sent to the TabContents that |
| 1201 // contains the widget being created. | 1205 // contains the widget being created. |
| 1202 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CreateWidget, | 1206 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_CreateWidget, |
| 1203 int /* opener_id */, | 1207 int /* opener_id */, |
| 1204 WebKit::WebPopupType /* popup type */, | 1208 WebKit::WebPopupType /* popup type */, |
| 1205 int /* route_id */) | 1209 int /* route_id */, |
| 1210 int32 /* surface_id */) |
| 1206 | 1211 |
| 1207 // Similar to ViewHostMsg_CreateWidget except the widget is a full screen | 1212 // Similar to ViewHostMsg_CreateWidget except the widget is a full screen |
| 1208 // window. | 1213 // window. |
| 1209 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateFullscreenWidget, | 1214 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_CreateFullscreenWidget, |
| 1210 int /* opener_id */, | 1215 int /* opener_id */, |
| 1211 int /* route_id */) | 1216 int /* route_id */, |
| 1217 int32 /* surface_id */) |
| 1212 | 1218 |
| 1213 // Get all savable resource links from current webpage, include main | 1219 // Get all savable resource links from current webpage, include main |
| 1214 // frame and sub-frame. | 1220 // frame and sub-frame. |
| 1215 IPC_MESSAGE_ROUTED1(ViewMsg_GetAllSavableResourceLinksForCurrentPage, | 1221 IPC_MESSAGE_ROUTED1(ViewMsg_GetAllSavableResourceLinksForCurrentPage, |
| 1216 GURL /* url of page which is needed to save */) | 1222 GURL /* url of page which is needed to save */) |
| 1217 | 1223 |
| 1218 // Get html data by serializing all frames of current page with lists | 1224 // Get html data by serializing all frames of current page with lists |
| 1219 // which contain all resource links that have local copy. | 1225 // which contain all resource links that have local copy. |
| 1220 IPC_MESSAGE_ROUTED3(ViewMsg_GetSerializedHtmlDataForCurrentPageWithLocalLinks, | 1226 IPC_MESSAGE_ROUTED3(ViewMsg_GetSerializedHtmlDataForCurrentPageWithLocalLinks, |
| 1221 std::vector<GURL> /* urls that have local copy */, | 1227 std::vector<GURL> /* urls that have local copy */, |
| (...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1975 media::MediaLogEvent /* event */) | 1981 media::MediaLogEvent /* event */) |
| 1976 | 1982 |
| 1977 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message | 1983 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message |
| 1978 // being sent back. | 1984 // being sent back. |
| 1979 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) | 1985 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) |
| 1980 | 1986 |
| 1981 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent | 1987 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent |
| 1982 // whenever the mouse is unlocked (which may or may not be caused by | 1988 // whenever the mouse is unlocked (which may or may not be caused by |
| 1983 // ViewHostMsg_UnlockMouse). | 1989 // ViewHostMsg_UnlockMouse). |
| 1984 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) | 1990 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) |
| OLD | NEW |