OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/common_param_traits.h" | 10 #include "content/common/common_param_traits.h" |
(...skipping 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1188 // a generated by a user action or because a constrained popup got turned | 1188 // a generated by a user action or because a constrained popup got turned |
1189 // into a full window). | 1189 // into a full window). |
1190 IPC_MESSAGE_ROUTED0(ViewMsg_DisassociateFromPopupCount) | 1190 IPC_MESSAGE_ROUTED0(ViewMsg_DisassociateFromPopupCount) |
1191 | 1191 |
1192 // Asks the renderer to send back FPS. | 1192 // Asks the renderer to send back FPS. |
1193 IPC_MESSAGE_ROUTED0(ViewMsg_GetFPS) | 1193 IPC_MESSAGE_ROUTED0(ViewMsg_GetFPS) |
1194 | 1194 |
1195 // Used to instruct the RenderView to go into "view source" mode. | 1195 // Used to instruct the RenderView to go into "view source" mode. |
1196 IPC_MESSAGE_ROUTED0(ViewMsg_EnableViewSourceMode) | 1196 IPC_MESSAGE_ROUTED0(ViewMsg_EnableViewSourceMode) |
1197 | 1197 |
| 1198 // Instructs the renderer to save the current page to MHTML. |
| 1199 IPC_MESSAGE_ROUTED2(ViewMsg_SavePageAsMHTML, |
| 1200 int /* job_id */, |
| 1201 IPC::PlatformFileForTransit /* file handle */) |
| 1202 |
1198 // Messages sent from the renderer to the browser. | 1203 // Messages sent from the renderer to the browser. |
1199 | 1204 |
1200 // Sent by the renderer when it is creating a new window. The browser creates | 1205 // Sent by the renderer when it is creating a new window. The browser creates |
1201 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is | 1206 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is |
1202 // MSG_ROUTING_NONE, the view couldn't be created. | 1207 // MSG_ROUTING_NONE, the view couldn't be created. |
1203 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_CreateWindow, | 1208 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_CreateWindow, |
1204 ViewHostMsg_CreateWindow_Params, | 1209 ViewHostMsg_CreateWindow_Params, |
1205 int /* route_id */, | 1210 int /* route_id */, |
1206 int64 /* cloned_session_storage_namespace_id */) | 1211 int64 /* cloned_session_storage_namespace_id */) |
1207 | 1212 |
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1956 | 1961 |
1957 // Send back a string to be recorded by UserMetrics. | 1962 // Send back a string to be recorded by UserMetrics. |
1958 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction, | 1963 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction, |
1959 std::string /* action */) | 1964 std::string /* action */) |
1960 | 1965 |
1961 // Provide the browser process with current renderer framerate. | 1966 // Provide the browser process with current renderer framerate. |
1962 IPC_MESSAGE_CONTROL2(ViewHostMsg_FPS, | 1967 IPC_MESSAGE_CONTROL2(ViewHostMsg_FPS, |
1963 int /* routing id */, | 1968 int /* routing id */, |
1964 float /* frames per second */) | 1969 float /* frames per second */) |
1965 | 1970 |
| 1971 // Notifies the browser that the page was or was not saved as MHTML. |
| 1972 IPC_MESSAGE_ROUTED2(ViewHostMsg_SavedPageAsMHTML, |
| 1973 int /* job_id*/, |
| 1974 bool /* success */) |
OLD | NEW |