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

Unified Diff: media/base/mock_callback.h

Issue 10067035: RefCounted types should not have public destructors, media/ and gpu/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 7 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 | « media/base/filters.h ('k') | media/base/mock_callback.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/mock_callback.h
diff --git a/media/base/mock_callback.h b/media/base/mock_callback.h
index 6d508444cf3415611ac09141563e8cbc698580c3..a3d297ff6fab4758f02d6e3df850020988ab1281 100644
--- a/media/base/mock_callback.h
+++ b/media/base/mock_callback.h
@@ -17,8 +17,12 @@ namespace media {
class MockClosure : public base::RefCountedThreadSafe<MockClosure> {
public:
MockClosure();
- virtual ~MockClosure();
MOCK_METHOD0(Run, void());
+
+ protected:
+ friend class base::RefCountedThreadSafe<MockClosure>;
+ virtual ~MockClosure();
+
private:
DISALLOW_COPY_AND_ASSIGN(MockClosure);
};
« no previous file with comments | « media/base/filters.h ('k') | media/base/mock_callback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698