summaryrefslogtreecommitdiffstats
path: root/base/synchronization
diff options
context:
space:
mode:
authorrsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-26 06:23:00 +0000
committerrsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-26 06:23:00 +0000
commitcb932487f6e6f8768da2030662dcd91929f4df0b (patch)
tree4563fa67fbafbf8e979e0c69024637b5badd9ec2 /base/synchronization
parent3f9bfdac19db30a0a424e21d254f869eafaeb4ac (diff)
downloadchromium_src-cb932487f6e6f8768da2030662dcd91929f4df0b.zip
chromium_src-cb932487f6e6f8768da2030662dcd91929f4df0b.tar.gz
chromium_src-cb932487f6e6f8768da2030662dcd91929f4df0b.tar.bz2
RefCounted types should not have public destructors, base/ edition
BUG=123295 TEST=it compiles Review URL: https://chromiumcodereview.appspot.com/10332269 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144130 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/synchronization')
-rw-r--r--base/synchronization/waitable_event_watcher.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/base/synchronization/waitable_event_watcher.h b/base/synchronization/waitable_event_watcher.h
index 1512acc..7e1698b 100644
--- a/base/synchronization/waitable_event_watcher.h
+++ b/base/synchronization/waitable_event_watcher.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -72,8 +72,6 @@ class BASE_EXPORT WaitableEventWatcher
class BASE_EXPORT Delegate {
public:
- virtual ~Delegate() { }
-
// -------------------------------------------------------------------------
// This is called on the MessageLoop thread when WaitableEvent has been
// signaled.
@@ -83,6 +81,9 @@ class BASE_EXPORT WaitableEventWatcher
// the past.
// -------------------------------------------------------------------------
virtual void OnWaitableEventSignaled(WaitableEvent* waitable_event) = 0;
+
+ protected:
+ virtual ~Delegate() { }
};
// ---------------------------------------------------------------------------