diff options
Diffstat (limited to 'chrome/plugin/npobject_stub.h')
-rw-r--r-- | chrome/plugin/npobject_stub.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/chrome/plugin/npobject_stub.h b/chrome/plugin/npobject_stub.h index 653a400..cd75853 100644 --- a/chrome/plugin/npobject_stub.h +++ b/chrome/plugin/npobject_stub.h @@ -13,6 +13,10 @@ #include "base/ref_counted.h" #include "chrome/common/ipc_channel.h" +namespace base { +class WaitableEvent; +} + class PluginChannelBase; class WebPluginDelegateProxy; struct NPIdentifier_Param; @@ -25,7 +29,10 @@ struct NPVariant_Param; class NPObjectStub : public IPC::Channel::Listener, public IPC::Message::Sender { public: - NPObjectStub(NPObject* npobject, PluginChannelBase* channel, int route_id); + NPObjectStub(NPObject* npobject, + PluginChannelBase* channel, + int route_id, + base::WaitableEvent* modal_dialog_event); ~NPObjectStub(); // IPC::Message::Sender implementation: @@ -74,6 +81,8 @@ class NPObjectStub : public IPC::Channel::Listener, int route_id_; scoped_refptr<PluginChannelBase> channel_; + base::WaitableEvent* modal_dialog_event_; + // These variables are used to ensure that the window script object is not // called after the plugin widget has gone away, as the frame manually // deallocates it and ignores the refcount to avoid leaks. |