summaryrefslogtreecommitdiffstats
path: root/content/plugin/plugin_thread.cc
diff options
context:
space:
mode:
authorrsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-11 19:30:55 +0000
committerrsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-11 19:30:55 +0000
commit871da305e61696753db715bf68fedec2b071fde4 (patch)
treee485e66cd37a1f14d0e72adc29cdb6fbbe38267b /content/plugin/plugin_thread.cc
parent66149a5cbd355757e63a82b9d3280cc6e0d36da8 (diff)
downloadchromium_src-871da305e61696753db715bf68fedec2b071fde4.zip
chromium_src-871da305e61696753db715bf68fedec2b071fde4.tar.gz
chromium_src-871da305e61696753db715bf68fedec2b071fde4.tar.bz2
RefCounted types should not have public destructors, content/ remaining bits
BUG=123295 TEST=none TBR=jam Review URL: https://chromiumcodereview.appspot.com/10069054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136631 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/plugin/plugin_thread.cc')
-rw-r--r--content/plugin/plugin_thread.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/content/plugin/plugin_thread.cc b/content/plugin/plugin_thread.cc
index 9b88420..75a692e 100644
--- a/content/plugin/plugin_thread.cc
+++ b/content/plugin/plugin_thread.cc
@@ -44,9 +44,11 @@ namespace {
class EnsureTerminateMessageFilter : public IPC::ChannelProxy::MessageFilter {
public:
EnsureTerminateMessageFilter() {}
- ~EnsureTerminateMessageFilter() {}
- private:
+ protected:
+ virtual ~EnsureTerminateMessageFilter() {}
+
+ // IPC::ChannelProxy::MessageFilter:
virtual void OnChannelError() {
// How long we wait before forcibly shutting down the process.
const base::TimeDelta kPluginProcessTerminateTimeout =
@@ -60,6 +62,7 @@ class EnsureTerminateMessageFilter : public IPC::ChannelProxy::MessageFilter {
kPluginProcessTerminateTimeout);
}
+ private:
void Terminate() {
base::KillProcess(base::GetCurrentProcessHandle(), 0, false);
}