diff options
author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-23 18:14:41 +0000 |
---|---|---|
committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-23 18:14:41 +0000 |
commit | 21d89834b43afb0f80aad1be78b681a38a3c97c8 (patch) | |
tree | bdaaee01d44106ba37e1ce49d5cc8355ac3316f8 /chrome/renderer/chrome_ppb_pdf_impl.cc | |
parent | 3c56b38d2055b16592d499ea4933c27cbb0fd809 (diff) | |
download | chromium_src-21d89834b43afb0f80aad1be78b681a38a3c97c8.zip chromium_src-21d89834b43afb0f80aad1be78b681a38a3c97c8.tar.gz chromium_src-21d89834b43afb0f80aad1be78b681a38a3c97c8.tar.bz2 |
Moving the ViewHostMsg_PDFHasUnsupportedFeature IPC message to Chrome as PDF is a chrome specific
feature. Removed the HasUnsupportedFeature method from the pepper PluginDelegate interface as
it is only needed for PDF.
BUG=87335
Review URL: http://codereview.chromium.org/7709020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97890 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/chrome_ppb_pdf_impl.cc')
-rw-r--r-- | chrome/renderer/chrome_ppb_pdf_impl.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/chrome/renderer/chrome_ppb_pdf_impl.cc b/chrome/renderer/chrome_ppb_pdf_impl.cc index 8f4f31a..053bfa8 100644 --- a/chrome/renderer/chrome_ppb_pdf_impl.cc +++ b/chrome/renderer/chrome_ppb_pdf_impl.cc @@ -7,7 +7,9 @@ #include "base/metrics/histogram.h" #include "base/utf_string_conversions.h" #include "build/build_config.h" +#include "chrome/common/render_messages.h" #include "content/common/view_messages.h" +#include "content/renderer/pepper_plugin_delegate_impl.h" #include "content/renderer/render_thread.h" #include "grit/webkit_resources.h" #include "grit/webkit_strings.h" @@ -320,7 +322,12 @@ void HasUnsupportedFeature(PP_Instance instance_id) { if (!instance->IsFullPagePlugin()) return; - instance->delegate()->HasUnsupportedFeature(); + PepperPluginDelegateImpl* pepper_delegate = + static_cast<PepperPluginDelegateImpl*>(instance->delegate()); + + RenderThread::current()->Send( + new ChromeViewHostMsg_PDFHasUnsupportedFeature( + pepper_delegate->GetRoutingId())); } void SaveAs(PP_Instance instance_id) { |