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}
14 files changed