Chromium Code Reviews| 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 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1245 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker, | 1245 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker, |
| 1246 IPC::Message /* message */) | 1246 IPC::Message /* message */) |
| 1247 | 1247 |
| 1248 // Tells the browser that a specific Appcache manifest in the current page | 1248 // Tells the browser that a specific Appcache manifest in the current page |
| 1249 // was accessed. | 1249 // was accessed. |
| 1250 IPC_MESSAGE_ROUTED2(ViewHostMsg_AppCacheAccessed, | 1250 IPC_MESSAGE_ROUTED2(ViewHostMsg_AppCacheAccessed, |
| 1251 GURL /* manifest url */, | 1251 GURL /* manifest url */, |
| 1252 bool /* blocked by policy */) | 1252 bool /* blocked by policy */) |
| 1253 | 1253 |
| 1254 // Initiates a download based on user actions like 'ALT+click'. | 1254 // Initiates a download based on user actions like 'ALT+click'. |
| 1255 IPC_MESSAGE_CONTROL5(ViewHostMsg_DownloadUrl, | 1255 IPC_MESSAGE_CONTROL4(ViewHostMsg_DownloadUrl, |
| 1256 int /* render_view_id */, | 1256 int /* render_view_id */, |
| 1257 GURL /* url */, | 1257 GURL /* url */, |
| 1258 content::Referrer /* referrer */, | 1258 content::Referrer /* referrer */, |
| 1259 base::string16 /* suggested_name */, | 1259 base::string16 /* suggested_name */) |
| 1260 bool /* use prompt for save location */) | 1260 |
| 1261 // Save image for <canvas>. | |
|
Ken Russell (switch to Gerrit)
2014/08/29 23:29:26
Please document that |encoded_image_data| is the c
| |
| 1262 IPC_MESSAGE_CONTROL4(ViewHostMsg_SaveImageAs, | |
| 1263 int /* render_view_id */, | |
| 1264 std::string /* encoded_image_data */, | |
|
Ken Russell (switch to Gerrit)
2014/08/29 23:29:26
Some guard against DOS'ing the browser process is
palmer
2014/08/30 00:37:29
Yeah, It's probably better to send the browser pro
Ken Russell (switch to Gerrit)
2014/08/30 00:52:09
Chris, in this case I think it's better to send th
| |
| 1265 content::Referrer /* referrer */, | |
| 1266 base::string16 /* suggested_name */) | |
|
palmer
2014/08/30 00:37:29
Make sure the browser side (a) takes the basename
| |
| 1261 | 1267 |
| 1262 // Used to go to the session history entry at the given offset (ie, -1 will | 1268 // Used to go to the session history entry at the given offset (ie, -1 will |
| 1263 // return the "back" item). | 1269 // return the "back" item). |
| 1264 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset, | 1270 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset, |
| 1265 int /* offset (from current) of history item to get */) | 1271 int /* offset (from current) of history item to get */) |
| 1266 | 1272 |
| 1267 // Sent from an inactive renderer for the browser to route to the active | 1273 // Sent from an inactive renderer for the browser to route to the active |
| 1268 // renderer, instructing it to close. | 1274 // renderer, instructing it to close. |
| 1269 IPC_MESSAGE_ROUTED0(ViewHostMsg_RouteCloseEvent) | 1275 IPC_MESSAGE_ROUTED0(ViewHostMsg_RouteCloseEvent) |
| 1270 | 1276 |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1670 // Since the browser keeps handles to the allocated transport DIBs, this | 1676 // Since the browser keeps handles to the allocated transport DIBs, this |
| 1671 // message is sent to tell the browser that it may release them when the | 1677 // message is sent to tell the browser that it may release them when the |
| 1672 // renderer is finished with them. | 1678 // renderer is finished with them. |
| 1673 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, | 1679 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, |
| 1674 TransportDIB::Id /* DIB id */) | 1680 TransportDIB::Id /* DIB id */) |
| 1675 #endif | 1681 #endif |
| 1676 | 1682 |
| 1677 // Adding a new message? Stick to the sort order above: first platform | 1683 // Adding a new message? Stick to the sort order above: first platform |
| 1678 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1684 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 1679 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1685 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |