summaryrefslogtreecommitdiffstats
path: root/webkit/api/public/WebKitClient.h
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-11 22:25:42 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-11 22:25:42 +0000
commit6fd279703048008896e8036090d6308605b46202 (patch)
treed8f71b855fb5e6cbd8d8d50ff55036d9e60d4d89 /webkit/api/public/WebKitClient.h
parentf6fb685b1a3c2a4dbf6112f7313f75761cae34d1 (diff)
downloadchromium_src-6fd279703048008896e8036090d6308605b46202.zip
chromium_src-6fd279703048008896e8036090d6308605b46202.tar.gz
chromium_src-6fd279703048008896e8036090d6308605b46202.tar.bz2
Add protected destructors to interface types that should only be deleted via a
subclass. There's no reason for these to be virtual since they can only be called by a subclass. R=jorlow BUG=none TEST=none Review URL: http://codereview.chromium.org/165312 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23100 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/api/public/WebKitClient.h')
-rw-r--r--webkit/api/public/WebKitClient.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/webkit/api/public/WebKitClient.h b/webkit/api/public/WebKitClient.h
index 2757a96..0eaf4da 100644
--- a/webkit/api/public/WebKitClient.h
+++ b/webkit/api/public/WebKitClient.h
@@ -209,6 +209,9 @@ namespace WebKit {
// Callable from a background WebKit thread.
virtual void callOnMainThread(void (*func)()) = 0;
+
+ protected:
+ ~WebKitClient() { }
};
} // namespace WebKit