Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(373)

Side by Side Diff: content/common/view_messages.h

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
Patch Set: CONTENT_EXPORT Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1189 matching lines...) Expand 10 before | Expand all | Expand 10 after
1200 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker, 1200 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker,
1201 IPC::Message /* message */) 1201 IPC::Message /* message */)
1202 1202
1203 // Tells the browser that a specific Appcache manifest in the current page 1203 // Tells the browser that a specific Appcache manifest in the current page
1204 // was accessed. 1204 // was accessed.
1205 IPC_MESSAGE_ROUTED2(ViewHostMsg_AppCacheAccessed, 1205 IPC_MESSAGE_ROUTED2(ViewHostMsg_AppCacheAccessed,
1206 GURL /* manifest url */, 1206 GURL /* manifest url */,
1207 bool /* blocked by policy */) 1207 bool /* blocked by policy */)
1208 1208
1209 // Initiates a download based on user actions like 'ALT+click'. 1209 // Initiates a download based on user actions like 'ALT+click'.
1210 IPC_MESSAGE_CONTROL5(ViewHostMsg_DownloadUrl, 1210 IPC_MESSAGE_CONTROL4(ViewHostMsg_DownloadUrl,
1211 int /* render_view_id */, 1211 int /* render_view_id */,
1212 GURL /* url */, 1212 GURL /* url */,
1213 content::Referrer /* referrer */, 1213 content::Referrer /* referrer */,
1214 base::string16 /* suggested_name */, 1214 base::string16 /* suggested_name */)
1215 bool /* use prompt for save location */)
1216 1215
1217 // Used to go to the session history entry at the given offset (ie, -1 will 1216 // Used to go to the session history entry at the given offset (ie, -1 will
1218 // return the "back" item). 1217 // return the "back" item).
1219 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset, 1218 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset,
1220 int /* offset (from current) of history item to get */) 1219 int /* offset (from current) of history item to get */)
1221 1220
1222 // Sent from an inactive renderer for the browser to route to the active 1221 // Sent from an inactive renderer for the browser to route to the active
1223 // renderer, instructing it to close. 1222 // renderer, instructing it to close.
1224 IPC_MESSAGE_ROUTED0(ViewHostMsg_RouteCloseEvent) 1223 IPC_MESSAGE_ROUTED0(ViewHostMsg_RouteCloseEvent)
1225 1224
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
1345 content::FileChooserParams) 1344 content::FileChooserParams)
1346 1345
1347 // Asks the browser to enumerate a directory. This is equivalent to running 1346 // Asks the browser to enumerate a directory. This is equivalent to running
1348 // the file chooser in directory-enumeration mode and having the user select 1347 // the file chooser in directory-enumeration mode and having the user select
1349 // the given directory. The result is returned in a 1348 // the given directory. The result is returned in a
1350 // ViewMsg_EnumerateDirectoryResponse message. 1349 // ViewMsg_EnumerateDirectoryResponse message.
1351 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory, 1350 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory,
1352 int /* request_id */, 1351 int /* request_id */,
1353 base::FilePath /* file_path */) 1352 base::FilePath /* file_path */)
1354 1353
1354 // Asks the browser to save a image (for <canvas> or <img>) from a data URL.
1355 // Note: |data_url| is the contents of a data:URL, and that it's represented as
1356 // a string only to work around size limitations for GURLs in IPC messages.
1357 IPC_MESSAGE_CONTROL2(ViewHostMsg_SaveImageFromDataURL,
1358 int /* render_view_id */,
1359 std::string /* data_url */)
1360
1355 // Tells the browser to move the focus to the next (previous if reverse is 1361 // Tells the browser to move the focus to the next (previous if reverse is
1356 // true) focusable element. 1362 // true) focusable element.
1357 IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus, 1363 IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus,
1358 bool /* reverse */) 1364 bool /* reverse */)
1359 1365
1360 // Required for opening a date/time dialog 1366 // Required for opening a date/time dialog
1361 IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenDateTimeDialog, 1367 IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenDateTimeDialog,
1362 ViewHostMsg_DateTimeDialogValue_Params /* value */) 1368 ViewHostMsg_DateTimeDialogValue_Params /* value */)
1363 1369
1364 // Required for updating text input state. 1370 // Required for updating text input state.
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
1627 // Since the browser keeps handles to the allocated transport DIBs, this 1633 // Since the browser keeps handles to the allocated transport DIBs, this
1628 // message is sent to tell the browser that it may release them when the 1634 // message is sent to tell the browser that it may release them when the
1629 // renderer is finished with them. 1635 // renderer is finished with them.
1630 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, 1636 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB,
1631 TransportDIB::Id /* DIB id */) 1637 TransportDIB::Id /* DIB id */)
1632 #endif 1638 #endif
1633 1639
1634 // Adding a new message? Stick to the sort order above: first platform 1640 // Adding a new message? Stick to the sort order above: first platform
1635 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 1641 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1636 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 1642 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698