summaryrefslogtreecommitdiffstats
path: root/webkit/plugins
diff options
context:
space:
mode:
authorkerz@chromium.org <kerz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-20 22:13:37 +0000
committerkerz@chromium.org <kerz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-20 22:13:37 +0000
commit4c069962107452fb36c76a3845bb713c0532c606 (patch)
tree29457dfc6986d4ab4d5ff40cec88142f598ec80d /webkit/plugins
parent4b38eb84a245521a3d8b383a39617001ef8fedfb (diff)
downloadchromium_src-4c069962107452fb36c76a3845bb713c0532c606.zip
chromium_src-4c069962107452fb36c76a3845bb713c0532c606.tar.gz
chromium_src-4c069962107452fb36c76a3845bb713c0532c606.tar.bz2
Merge 82253 - Fix M12 release blocker. SaveAs now works for embedded PDFs and PDFs in iframe.BUG=79840TEST=Verify embedded PDFs can save using toolbar (lower-right corner).Review URL: http://codereview.chromium.org/6881055
TBR=gene@chromium.org Review URL: http://codereview.chromium.org/6877097 git-svn-id: svn://svn.chromium.org/chrome/branches/742/src@82369 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins')
-rw-r--r--webkit/plugins/ppapi/mock_plugin_delegate.cc2
-rw-r--r--webkit/plugins/ppapi/mock_plugin_delegate.h2
-rw-r--r--webkit/plugins/ppapi/plugin_delegate.h4
-rw-r--r--webkit/plugins/ppapi/ppb_pdf_impl.cc2
4 files changed, 5 insertions, 5 deletions
diff --git a/webkit/plugins/ppapi/mock_plugin_delegate.cc b/webkit/plugins/ppapi/mock_plugin_delegate.cc
index b0185ab..4ac0a00 100644
--- a/webkit/plugins/ppapi/mock_plugin_delegate.cc
+++ b/webkit/plugins/ppapi/mock_plugin_delegate.cc
@@ -224,7 +224,7 @@ void MockPluginDelegate::SetContentRestriction(int restrictions) {
void MockPluginDelegate::HasUnsupportedFeature() {
}
-void MockPluginDelegate::SaveAs() {
+void MockPluginDelegate::SaveURLAs(const GURL& url) {
}
P2PSocketDispatcher* MockPluginDelegate::GetP2PSocketDispatcher() {
diff --git a/webkit/plugins/ppapi/mock_plugin_delegate.h b/webkit/plugins/ppapi/mock_plugin_delegate.h
index 98f769f..32b80c7 100644
--- a/webkit/plugins/ppapi/mock_plugin_delegate.h
+++ b/webkit/plugins/ppapi/mock_plugin_delegate.h
@@ -99,7 +99,7 @@ class MockPluginDelegate : public PluginDelegate {
virtual void DidStopLoading();
virtual void SetContentRestriction(int restrictions);
virtual void HasUnsupportedFeature();
- virtual void SaveAs();
+ virtual void SaveURLAs(const GURL& url);
virtual P2PSocketDispatcher* GetP2PSocketDispatcher();
virtual webkit_glue::P2PTransport* CreateP2PTransport();
};
diff --git a/webkit/plugins/ppapi/plugin_delegate.h b/webkit/plugins/ppapi/plugin_delegate.h
index 212889a..eefb1e6 100644
--- a/webkit/plugins/ppapi/plugin_delegate.h
+++ b/webkit/plugins/ppapi/plugin_delegate.h
@@ -375,8 +375,8 @@ class PluginDelegate {
// Tells the browser that the PDF has an unsupported feature.
virtual void HasUnsupportedFeature() = 0;
- // Tells the browser to bring up SaveAs dialog.
- virtual void SaveAs() = 0;
+ // Tells the browser to bring up SaveAs dialog to save specified URL.
+ virtual void SaveURLAs(const GURL& url) = 0;
// Socket dispatcher for P2P connections. Returns to NULL if P2P API
// is disabled.
diff --git a/webkit/plugins/ppapi/ppb_pdf_impl.cc b/webkit/plugins/ppapi/ppb_pdf_impl.cc
index 9316e3a..f58b823 100644
--- a/webkit/plugins/ppapi/ppb_pdf_impl.cc
+++ b/webkit/plugins/ppapi/ppb_pdf_impl.cc
@@ -304,7 +304,7 @@ void SaveAs(PP_Instance instance_id) {
PluginInstance* instance = ResourceTracker::Get()->GetInstance(instance_id);
if (!instance)
return;
- instance->delegate()->SaveAs();
+ instance->delegate()->SaveURLAs(instance->plugin_url());
}
const PPB_PDF ppb_pdf = {