diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-13 06:41:11 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-13 06:41:11 +0000 |
commit | c5b3b5ee82c8aa7b760acec23fa39ee61dd53152 (patch) | |
tree | b2ceedd83090a12c4b23ca2aca55f26a72fea5a1 /webkit/glue/webwidget_impl.h | |
parent | b0a09a009b8b46cca2800ce16009651723fdadbf (diff) | |
download | chromium_src-c5b3b5ee82c8aa7b760acec23fa39ee61dd53152.zip chromium_src-c5b3b5ee82c8aa7b760acec23fa39ee61dd53152.tar.gz chromium_src-c5b3b5ee82c8aa7b760acec23fa39ee61dd53152.tar.bz2 |
The WebFrame interface currently supports reference counting, but no one uses.
Internally, WebFrameImpl needs reference counting, so we still define it there.
Same goes for WebView and WebWidget.
While making this change, I noticed that WebInspectorClient was casting WebView
pointers to WebViewImpl pointers too much. By just starting with WebViewImpl
pointers, things could be cleaned up considerably.
R=brettw
Review URL: http://codereview.chromium.org/21342
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9745 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webwidget_impl.h')
-rw-r--r-- | webkit/glue/webwidget_impl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/webkit/glue/webwidget_impl.h b/webkit/glue/webwidget_impl.h index d3d9b06..7a67044 100644 --- a/webkit/glue/webwidget_impl.h +++ b/webkit/glue/webwidget_impl.h @@ -30,7 +30,8 @@ class WebMouseWheelEvent; class WebWidgetDelegate; class WebWidgetImpl : public WebWidget, - public WebCore::FramelessScrollViewClient { + public WebCore::FramelessScrollViewClient, + public base::RefCounted<WebWidgetImpl> { public: // WebWidget virtual void Close(); @@ -69,6 +70,7 @@ class WebWidgetImpl : public WebWidget, protected: friend class WebWidget; // So WebWidget::Create can call our constructor + friend class base::RefCounted<WebWidgetImpl>; WebWidgetImpl(WebWidgetDelegate* delegate); ~WebWidgetImpl(); |