Index: chrome/plugin/npobject_proxy.h |
diff --git a/chrome/plugin/npobject_proxy.h b/chrome/plugin/npobject_proxy.h |
index 41577179d398b4ec18a3c69e8248cd018c007426..dcc4d01f996d0cf9509e475a0d4509ef71da3d8e 100644 |
--- a/chrome/plugin/npobject_proxy.h |
+++ b/chrome/plugin/npobject_proxy.h |
@@ -16,6 +16,10 @@ class PluginChannelBase; |
struct NPObject; |
struct NPVariant_Param; |
+namespace base { |
+class WaitableEvent; |
+} |
+ |
// When running a plugin in a different process from the renderer, we need to |
// proxy calls to NPObjects across process boundaries. This happens both ways, |
// as a plugin can get an NPObject for the window, and a page can get an |
@@ -29,10 +33,11 @@ class NPObjectProxy : public IPC::Channel::Listener, |
public: |
~NPObjectProxy(); |
+ // modal_dialog_event_ is must be valid for the lifetime of the NPObjectProxy. |
static NPObject* Create(PluginChannelBase* channel, |
int route_id, |
void* npobject_ptr, |
- HANDLE modal_dialog_event); |
+ base::WaitableEvent* modal_dialog_event); |
// IPC::Message::Sender implementation: |
bool Send(IPC::Message* msg); |
@@ -93,7 +98,7 @@ class NPObjectProxy : public IPC::Channel::Listener, |
NPObjectProxy(PluginChannelBase* channel, |
int route_id, |
void* npobject_ptr, |
- HANDLE modal_dialog_event); |
+ base::WaitableEvent* modal_dialog_event); |
// IPC::Channel::Listener implementation: |
void OnMessageReceived(const IPC::Message& msg); |
@@ -109,7 +114,7 @@ class NPObjectProxy : public IPC::Channel::Listener, |
int route_id_; |
void* npobject_ptr_; |
scoped_refptr<PluginChannelBase> channel_; |
- HANDLE modal_dialog_event_; |
+ base::WaitableEvent* modal_dialog_event_; |
}; |
#endif // CHROME_PLUGIN_NPOBJECT_PROXY_H_ |