diff options
Diffstat (limited to 'content/renderer/pepper')
-rw-r--r-- | content/renderer/pepper/pepper_plugin_delegate_impl.cc | 4 | ||||
-rw-r--r-- | content/renderer/pepper/pepper_plugin_delegate_impl.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/content/renderer/pepper/pepper_plugin_delegate_impl.cc b/content/renderer/pepper/pepper_plugin_delegate_impl.cc index 5803ffb..95085f5 100644 --- a/content/renderer/pepper/pepper_plugin_delegate_impl.cc +++ b/content/renderer/pepper/pepper_plugin_delegate_impl.cc @@ -545,6 +545,10 @@ void PepperPluginDelegateImpl::InstanceDeleted( PluginFocusChanged(instance, false); } +void PepperPluginDelegateImpl::SetAllowSuddenTermination(bool allowed) { + RenderThreadImpl::current()->SetAllowSuddenTermination(allowed); +} + SkBitmap* PepperPluginDelegateImpl::GetSadPluginBitmap() { return GetContentClient()->renderer()->GetSadPluginBitmap(); } diff --git a/content/renderer/pepper/pepper_plugin_delegate_impl.h b/content/renderer/pepper/pepper_plugin_delegate_impl.h index a7ce753..f1f4dc3 100644 --- a/content/renderer/pepper/pepper_plugin_delegate_impl.h +++ b/content/renderer/pepper/pepper_plugin_delegate_impl.h @@ -167,6 +167,7 @@ class PepperPluginDelegateImpl webkit::ppapi::PluginInstance* instance) OVERRIDE; virtual void InstanceDeleted( webkit::ppapi::PluginInstance* instance) OVERRIDE; + virtual void SetAllowSuddenTermination(bool allowed) OVERRIDE; virtual SkBitmap* GetSadPluginBitmap() OVERRIDE; virtual WebKit::WebPlugin* CreatePluginReplacement( const FilePath& file_path) OVERRIDE; |