 Chromium Code Reviews
 Chromium Code Reviews Issue 518693002:
  Fix a crash when saving a <canvas> or <img> image which is large.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master
    
  
    Issue 518693002:
  Fix a crash when saving a <canvas> or <img> image which is large.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master| 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 1182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1193 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker, | 1193 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker, | 
| 1194 IPC::Message /* message */) | 1194 IPC::Message /* message */) | 
| 1195 | 1195 | 
| 1196 // Tells the browser that a specific Appcache manifest in the current page | 1196 // Tells the browser that a specific Appcache manifest in the current page | 
| 1197 // was accessed. | 1197 // was accessed. | 
| 1198 IPC_MESSAGE_ROUTED2(ViewHostMsg_AppCacheAccessed, | 1198 IPC_MESSAGE_ROUTED2(ViewHostMsg_AppCacheAccessed, | 
| 1199 GURL /* manifest url */, | 1199 GURL /* manifest url */, | 
| 1200 bool /* blocked by policy */) | 1200 bool /* blocked by policy */) | 
| 1201 | 1201 | 
| 1202 // Initiates a download based on user actions like 'ALT+click'. | 1202 // Initiates a download based on user actions like 'ALT+click'. | 
| 1203 IPC_MESSAGE_CONTROL5(ViewHostMsg_DownloadUrl, | 1203 IPC_MESSAGE_CONTROL4(ViewHostMsg_DownloadUrl, | 
| 
Ken Russell (switch to Gerrit)
2014/09/04 00:23:26
Per other comments, I think this IPC should be lef
 
zino
2014/09/05 03:47:47
I don't think we need it.
It was needed only for "
 | |
| 1204 int /* render_view_id */, | 1204 int /* render_view_id */, | 
| 1205 GURL /* url */, | 1205 GURL /* url */, | 
| 1206 content::Referrer /* referrer */, | 1206 content::Referrer /* referrer */, | 
| 1207 base::string16 /* suggested_name */, | 1207 base::string16 /* suggested_name */) | 
| 1208 bool /* use prompt for save location */) | |
| 1209 | 1208 | 
| 1210 // Used to go to the session history entry at the given offset (ie, -1 will | 1209 // Used to go to the session history entry at the given offset (ie, -1 will | 
| 1211 // return the "back" item). | 1210 // return the "back" item). | 
| 1212 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset, | 1211 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset, | 
| 1213 int /* offset (from current) of history item to get */) | 1212 int /* offset (from current) of history item to get */) | 
| 1214 | 1213 | 
| 1215 // Sent from an inactive renderer for the browser to route to the active | 1214 // Sent from an inactive renderer for the browser to route to the active | 
| 1216 // renderer, instructing it to close. | 1215 // renderer, instructing it to close. | 
| 1217 IPC_MESSAGE_ROUTED0(ViewHostMsg_RouteCloseEvent) | 1216 IPC_MESSAGE_ROUTED0(ViewHostMsg_RouteCloseEvent) | 
| 1218 | 1217 | 
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1336 content::FileChooserParams) | 1335 content::FileChooserParams) | 
| 1337 | 1336 | 
| 1338 // Asks the browser to enumerate a directory. This is equivalent to running | 1337 // Asks the browser to enumerate a directory. This is equivalent to running | 
| 1339 // the file chooser in directory-enumeration mode and having the user select | 1338 // the file chooser in directory-enumeration mode and having the user select | 
| 1340 // the given directory. The result is returned in a | 1339 // the given directory. The result is returned in a | 
| 1341 // ViewMsg_EnumerateDirectoryResponse message. | 1340 // ViewMsg_EnumerateDirectoryResponse message. | 
| 1342 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory, | 1341 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory, | 
| 1343 int /* request_id */, | 1342 int /* request_id */, | 
| 1344 base::FilePath /* file_path */) | 1343 base::FilePath /* file_path */) | 
| 1345 | 1344 | 
| 1345 // Asks the browser to save a image (for <canvas> or <img>) from a data URL. | |
| 1346 // Note: |data_url| is the contents of a data:URL, and that it's represented as | |
| 1347 // a string only to work around size limitations for GURLs in IPC messages. | |
| 1348 IPC_MESSAGE_CONTROL2(ViewHostMsg_SaveImageFromDataURL, | |
| 1349 int /* render_view_id */, | |
| 1350 std::string /* data_url */) | |
| 1351 | |
| 1346 // Tells the browser to move the focus to the next (previous if reverse is | 1352 // Tells the browser to move the focus to the next (previous if reverse is | 
| 1347 // true) focusable element. | 1353 // true) focusable element. | 
| 1348 IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus, | 1354 IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus, | 
| 1349 bool /* reverse */) | 1355 bool /* reverse */) | 
| 1350 | 1356 | 
| 1351 // Required for opening a date/time dialog | 1357 // Required for opening a date/time dialog | 
| 1352 IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenDateTimeDialog, | 1358 IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenDateTimeDialog, | 
| 1353 ViewHostMsg_DateTimeDialogValue_Params /* value */) | 1359 ViewHostMsg_DateTimeDialogValue_Params /* value */) | 
| 1354 | 1360 | 
| 1355 // Required for updating text input state. | 1361 // Required for updating text input state. | 
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1618 // Since the browser keeps handles to the allocated transport DIBs, this | 1624 // Since the browser keeps handles to the allocated transport DIBs, this | 
| 1619 // message is sent to tell the browser that it may release them when the | 1625 // message is sent to tell the browser that it may release them when the | 
| 1620 // renderer is finished with them. | 1626 // renderer is finished with them. | 
| 1621 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, | 1627 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, | 
| 1622 TransportDIB::Id /* DIB id */) | 1628 TransportDIB::Id /* DIB id */) | 
| 1623 #endif | 1629 #endif | 
| 1624 | 1630 | 
| 1625 // Adding a new message? Stick to the sort order above: first platform | 1631 // Adding a new message? Stick to the sort order above: first platform | 
| 1626 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1632 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 
| 1627 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1633 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 
| OLD | NEW |