diff options
author | sammc <sammc@chromium.org> | 2014-11-19 15:27:40 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-19 23:27:59 +0000 |
commit | 92af61555dff60e1d1b51c47d27d07c5a643726d (patch) | |
tree | 0b9f83a6e76178ee019838d6bddadc0d4a9185c5 /extensions/common/extension_messages.h | |
parent | b45f55be7958e1a2dbd30261c10436b49829782d (diff) | |
download | chromium_src-92af61555dff60e1d1b51c47d27d07c5a643726d.zip chromium_src-92af61555dff60e1d1b51c47d27d07c5a643726d.tar.gz chromium_src-92af61555dff60e1d1b51c47d27d07c5a643726d.tar.bz2 |
OOP PDF: Change the save toolbar button to match the save menu behavior.
Previously, the save toolbar button for the out-of-process PDF plugin
was a link to the PDF URL. This did not function for file URLs or PDFs
returned in response to a POST. This changes the button to use the
pepper PDF save API and adds a way for a WebContentsDelegate to override
SaveFrame behavior so the MimeHandlerViewGuest can instruct its embedder
to handle the actual save.
BUG=416329
TEST=Run with --out-of-process-pdf.
Open a local PDF and click the save toolbar button. The save as dialog
should appear.
Repeat the same with a PDF returned by a POST request. Saving should
save the opened PDF - not the page returned by a GET to the same URL.
Review URL: https://codereview.chromium.org/706823004
Cr-Commit-Position: refs/heads/master@{#304920}
Diffstat (limited to 'extensions/common/extension_messages.h')
-rw-r--r-- | extensions/common/extension_messages.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/extensions/common/extension_messages.h b/extensions/common/extension_messages.h index 526b6ec..b99bc3a 100644 --- a/extensions/common/extension_messages.h +++ b/extensions/common/extension_messages.h @@ -759,9 +759,10 @@ IPC_MESSAGE_CONTROL4(ExtensionHostMsg_AttachGuest, base::DictionaryValue /* attach_params */) // Tells the browser to create a mime handler guest view for a plugin. -IPC_MESSAGE_CONTROL4(ExtensionHostMsg_CreateMimeHandlerViewGuest, +IPC_MESSAGE_CONTROL5(ExtensionHostMsg_CreateMimeHandlerViewGuest, int /* render_frame_id */, std::string /* embedder_url */, + std::string /* content_url */, std::string /* mime_type */, int /* element_instance_id */) |