diff options
author | ager@google.com <ager@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-23 08:34:04 +0000 |
---|---|---|
committer | ager@google.com <ager@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-23 08:34:04 +0000 |
commit | 486b1999fbce99b437f44d1f5b10739a97b7211b (patch) | |
tree | 94549d57910b37231a4bfd269191bad57328b21d /webkit/pending/Peerable.h | |
parent | f1cc960cda185ea164b809e44cc3e946a996ff36 (diff) | |
download | chromium_src-486b1999fbce99b437f44d1f5b10739a97b7211b.zip chromium_src-486b1999fbce99b437f44d1f5b10739a97b7211b.tar.gz chromium_src-486b1999fbce99b437f44d1f5b10739a97b7211b.tar.bz2 |
Move Peerable to its own file and use single inheritance for
NonCopyable.
Review URL: http://codereview.chromium.org/4209
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2479 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/pending/Peerable.h')
-rw-r--r-- | webkit/pending/Peerable.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/webkit/pending/Peerable.h b/webkit/pending/Peerable.h new file mode 100644 index 0000000..75175ad --- /dev/null +++ b/webkit/pending/Peerable.h @@ -0,0 +1,25 @@ +// Copyright (c) 2008 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.
+
+#ifndef Peerable_h
+#define Peerable_h
+
+#include <wtf/Noncopyable.h>
+
+#if USE(V8_BINDING)
+
+namespace WebCore {
+
+class Peerable : Noncopyable {
+public:
+ virtual void setPeer(void* peer) = 0;
+ virtual void* peer() const = 0;
+protected:
+ virtual ~Peerable() { }
+};
+
+};
+
+#endif // USE(V8_BINDING)
+#endif // Peerable_h
|