diff options
Diffstat (limited to 'chrome/browser/render_view_host.h')
-rw-r--r-- | chrome/browser/render_view_host.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/chrome/browser/render_view_host.h b/chrome/browser/render_view_host.h index f95720e..7b0ef7a 100644 --- a/chrome/browser/render_view_host.h +++ b/chrome/browser/render_view_host.h @@ -8,7 +8,7 @@ #include <string> #include <vector> -#include "base/scoped_handle.h" +#include "base/scoped_ptr.h" #include "chrome/browser/render_view_host_delegate.h" #include "chrome/browser/render_widget_host.h" #include "chrome/common/page_zoom.h" @@ -33,6 +33,10 @@ struct WebDropData; struct WebPreferences; enum WindowOpenDisposition; +namespace base { +class WaitableEvent; +} + namespace gfx { class Point; } @@ -86,7 +90,7 @@ class RenderViewHost : public RenderWidgetHost { explicit RenderViewHost(SiteInstance* instance, RenderViewHostDelegate* delegate, int routing_id, - HANDLE modal_dialog_event); + base::WaitableEvent* modal_dialog_event); virtual ~RenderViewHost(); SiteInstance* site_instance() const { return instance_; } @@ -578,7 +582,7 @@ class RenderViewHost : public RenderWidgetHost { // Handle to an event that's set when the page is showing a modal dialog box // (or equivalent constrained window). The renderer and plugin processes // check this to know if they should pump messages/tasks then. - ScopedHandle modal_dialog_event_; + scoped_ptr<base::WaitableEvent> modal_dialog_event_; // Multiple dialog boxes can be shown before the first one is finished, // so we keep a counter to know when we can reset the modal dialog event. @@ -618,7 +622,7 @@ class RenderViewHostFactory { SiteInstance* instance, RenderViewHostDelegate* delegate, int routing_id, - HANDLE modal_dialog_event) = 0; + base::WaitableEvent* modal_dialog_event) = 0; }; #endif // CHROME_BROWSER_RENDER_VIEW_HOST_H__ |