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

Unified Diff: media/base/factory.h

Issue 360042: First patch in making destructors of refcounted objects private. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month 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
Index: media/base/factory.h
===================================================================
--- media/base/factory.h (revision 30973)
+++ media/base/factory.h (working copy)
@@ -93,6 +93,8 @@
}
private:
+ ~FilterFactoryCollection() {}
M-A Ruel 2009/11/05 20:31:28 virtual
jam 2009/11/05 21:52:37 no child classes. if they get added in the future
+
typedef std::vector< scoped_refptr<FilterFactory> > FactoryVector;
FactoryVector factories_;
@@ -123,6 +125,8 @@
}
private:
+ ~FilterFactoryImpl0() {}
M-A Ruel 2009/11/05 20:31:28 virtual
+
DISALLOW_COPY_AND_ASSIGN(FilterFactoryImpl0);
};
@@ -152,6 +156,8 @@
}
private:
+ ~FilterFactoryImpl1() {}
+
A const a_;
DISALLOW_COPY_AND_ASSIGN(FilterFactoryImpl1);
};
@@ -173,6 +179,8 @@
}
private:
+ ~FilterFactoryImpl2() {}
+
A const a_;
B const b_;
@@ -214,6 +222,8 @@
}
private:
+ ~InstanceFilterFactory() {}
+
scoped_refptr<Filter> filter_;
bool create_called_;
« media/base/buffers.h ('K') | « media/base/buffers.h ('k') | media/filters/ffmpeg_demuxer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698