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

Unified Diff: media/base/message_loop_factory.h

Issue 11149006: Extend scoped_ptr to be closer to unique_ptr. Support custom deleters, and deleting arrays. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years 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/audio_bus.h ('k') | media/base/serial_runner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/message_loop_factory.h
diff --git a/media/base/message_loop_factory.h b/media/base/message_loop_factory.h
index f399b4804b6ceab124ed102374684a8aa873835a..0989174e55a39f7cd783f71cc04e8d06f770d39b 100644
--- a/media/base/message_loop_factory.h
+++ b/media/base/message_loop_factory.h
@@ -38,8 +38,9 @@ class MEDIA_EXPORT MessageLoopFactory {
scoped_refptr<base::MessageLoopProxy> GetMessageLoop(Type type);
private:
- // Only allow scoped_ptr<> to delete factory.
- friend class scoped_ptr<MessageLoopFactory>;
+ // Restrict who can delete the factory to scoped_ptr<>. scoped_ptr<> uses
+ // base::DefaultDeleter.
+ friend struct base::DefaultDeleter<MessageLoopFactory>;
~MessageLoopFactory();
// Returns the thread associated with |type| creating a new thread if needed.
« no previous file with comments | « media/base/audio_bus.h ('k') | media/base/serial_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698