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/webview_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/webview_impl.h')
-rw-r--r-- | webkit/glue/webview_impl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/webkit/glue/webview_impl.h b/webkit/glue/webview_impl.h index 7ef3686..c511e7b 100644 --- a/webkit/glue/webview_impl.h +++ b/webkit/glue/webview_impl.h @@ -44,7 +44,7 @@ class WebMouseEvent; class WebMouseWheelEvent; class WebViewDelegate; -class WebViewImpl : public WebView { +class WebViewImpl : public WebView, public base::RefCounted<WebViewImpl> { public: // WebView virtual bool ShouldClose(); @@ -194,6 +194,7 @@ class WebViewImpl : public WebView { protected: friend class WebView; // So WebView::Create can call our constructor + friend class base::RefCounted<WebViewImpl>; WebViewImpl(); ~WebViewImpl(); |