Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Unified Diff: ppapi/proxy/var_serialization_rules.h

Issue 10694111: RefCounted types should not have public destructors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix android & Win compiles Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ipc/ipc_sender.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/var_serialization_rules.h
diff --git a/ppapi/proxy/var_serialization_rules.h b/ppapi/proxy/var_serialization_rules.h
index bde9d4fad78cd71600465975cde5178e755c290a..399cff326ecf2dfc08233c94984f2c802a47ac2f 100644
--- a/ppapi/proxy/var_serialization_rules.h
+++ b/ppapi/proxy/var_serialization_rules.h
@@ -18,8 +18,6 @@ namespace proxy {
// bookkeeping rules.
class VarSerializationRules : public base::RefCounted<VarSerializationRules> {
public:
- virtual ~VarSerializationRules() {}
-
// Caller-owned calls --------------------------------------------------------
//
// A caller-owned call is when doing a function call with a "normal" input
@@ -79,6 +77,10 @@ class VarSerializationRules : public base::RefCounted<VarSerializationRules> {
protected:
VarSerializationRules() {}
+ virtual ~VarSerializationRules() {}
+
+ private:
+ friend class base::RefCounted<VarSerializationRules>;
};
} // namespace proxy
« no previous file with comments | « ipc/ipc_sender.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698