| Index: chrome/plugin/npobject_stub.h
|
| ===================================================================
|
| --- chrome/plugin/npobject_stub.h (revision 10079)
|
| +++ chrome/plugin/npobject_stub.h (working copy)
|
| @@ -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 @@
|
| 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 @@
|
| 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.
|
|
|