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

Unified Diff: media/base/mock_callback.cc

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/mock_callback.h ('k') | media/base/stream_parser_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/mock_callback.cc
diff --git a/media/base/mock_callback.cc b/media/base/mock_callback.cc
index 58cc98e16de07079d07de319512cfdef82b766ca..033febd98a936483a633b636700dc0b4d04368f2 100644
--- a/media/base/mock_callback.cc
+++ b/media/base/mock_callback.cc
@@ -23,8 +23,12 @@ base::Closure NewExpectedClosure() {
class MockStatusCB : public base::RefCountedThreadSafe<MockStatusCB> {
public:
MockStatusCB() {}
- virtual ~MockStatusCB() {}
MOCK_METHOD1(Run, void(PipelineStatus));
+
+ protected:
+ friend class base::RefCountedThreadSafe<MockStatusCB>;
+ virtual ~MockStatusCB() {}
+
private:
DISALLOW_COPY_AND_ASSIGN(MockStatusCB);
};
« no previous file with comments | « media/base/mock_callback.h ('k') | media/base/stream_parser_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698