diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-13 23:36:00 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-13 23:36:00 +0000 |
commit | 9e823663aa2491262162657c6528123999e0dbb2 (patch) | |
tree | aa8a190b4e960f70b0ec4e9a6741c65a7db36cac /chrome/renderer | |
parent | 196e469886b723e8f3531a1fe51204e4dc50dc8b (diff) | |
download | chromium_src-9e823663aa2491262162657c6528123999e0dbb2.zip chromium_src-9e823663aa2491262162657c6528123999e0dbb2.tar.gz chromium_src-9e823663aa2491262162657c6528123999e0dbb2.tar.bz2 |
Use CommandUpdater for disabling commands that were disabled by plugins.
Review URL: http://codereview.chromium.org/3742002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62475 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/pepper_plugin_delegate_impl.cc | 6 | ||||
-rw-r--r-- | chrome/renderer/pepper_plugin_delegate_impl.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/chrome/renderer/pepper_plugin_delegate_impl.cc b/chrome/renderer/pepper_plugin_delegate_impl.cc index 2a9cadf..a3e18fe 100644 --- a/chrome/renderer/pepper_plugin_delegate_impl.cc +++ b/chrome/renderer/pepper_plugin_delegate_impl.cc @@ -766,7 +766,7 @@ void PepperPluginDelegateImpl::DidStopLoading() { render_view_->DidStopLoadingForPlugin(); } -void PepperPluginDelegateImpl::DisableCommand(int command_id) { - render_view_->Send( - new ViewHostMsg_DisableCommand(render_view_->routing_id(), command_id)); +void PepperPluginDelegateImpl::SetContentRestriction(int restrictions) { + render_view_->Send(new ViewHostMsg_UpdateContentRestrictions( + render_view_->routing_id(), restrictions)); } diff --git a/chrome/renderer/pepper_plugin_delegate_impl.h b/chrome/renderer/pepper_plugin_delegate_impl.h index 839eb9d..790be75 100644 --- a/chrome/renderer/pepper_plugin_delegate_impl.h +++ b/chrome/renderer/pepper_plugin_delegate_impl.h @@ -107,7 +107,7 @@ class PepperPluginDelegateImpl virtual std::string ResolveProxy(const GURL& url); virtual void DidStartLoading(); virtual void DidStopLoading(); - virtual void DisableCommand(int command_id); + virtual void SetContentRestriction(int restrictions); private: // Pointer to the RenderView that owns us. |