summaryrefslogtreecommitdiffstats
path: root/lib/render_widget_host_view_qt.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/render_widget_host_view_qt.h')
-rw-r--r--lib/render_widget_host_view_qt.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/render_widget_host_view_qt.h b/lib/render_widget_host_view_qt.h
index 7a29e1d4b..05713d2b2 100644
--- a/lib/render_widget_host_view_qt.h
+++ b/lib/render_widget_host_view_qt.h
@@ -44,6 +44,7 @@
#include "shared/shared_globals.h"
+#include "base/memory/scoped_ptr.h"
#include "content/browser/renderer_host/render_widget_host_view_base.h"
#include <qglobal.h>
@@ -63,7 +64,7 @@ public:
RenderWidgetHostViewQt(content::RenderWidgetHost* widget);
~RenderWidgetHostViewQt();
- void SetDelegate(RenderWidgetHostViewQtDelegate* delegate) { m_delegate = delegate; }
+ void SetDelegate(RenderWidgetHostViewQtDelegate* delegate);
bool handleEvent(QEvent* event);
BackingStoreQt* GetBackingStore();
@@ -150,7 +151,7 @@ private:
bool IsPopup() const;
content::RenderWidgetHostImpl *m_host;
- RenderWidgetHostViewQtDelegate *m_delegate;
+ scoped_ptr<RenderWidgetHostViewQtDelegate> m_delegate;
gfx::Size m_requestedSize;
};