Chromium Code Reviews| Index: content/renderer/render_view_impl.cc |
| diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc |
| index b7fcce616c89d2c4df1ac477222ff6b20f3dd163..55c60c926a41123cf2938cc8c2810adcd04958f3 100644 |
| --- a/content/renderer/render_view_impl.cc |
| +++ b/content/renderer/render_view_impl.cc |
| @@ -40,6 +40,7 @@ |
| #include "content/child/npapi/webplugin_delegate_impl.h" |
| #include "content/child/request_extra_data.h" |
| #include "content/child/webmessageportchannel_impl.h" |
| +#include "content/common/content_constants_internal.h" |
| #include "content/common/database_messages.h" |
| #include "content/common/dom_storage/dom_storage_types.h" |
| #include "content/common/drag_messages.h" |
| @@ -1721,6 +1722,13 @@ void RenderViewImpl::printPage(WebLocalFrame* frame) { |
| PrintPage(frame, handling_input_event_)); |
| } |
| +void RenderViewImpl::saveImageFromDataURL(const blink::WebString& data_url) { |
| + // Note: We should basically send GURL but we use size-limited string instead |
| + // in order to send a larger data url to save a image for <canvas> or <img>. |
|
Ken Russell (switch to Gerrit)
2014/09/04 00:23:26
Assuming the code change I suggest is made, this c
|
| + if (data_url.length() < kMaxLengthOfDataURLString) |
| + Send(new ViewHostMsg_SaveImageFromDataURL(routing_id_, data_url.utf8())); |
| +} |
| + |
| bool RenderViewImpl::enumerateChosenDirectory( |
| const WebString& path, |
| WebFileChooserCompletion* chooser_completion) { |