Skip to content
Snippets Groups Projects
Commit f671062f authored by jam@chromium.org's avatar jam@chromium.org
Browse files

Add the ability for objects which derive from RefCountedThreadSafe to specify...

Add the ability for objects which derive from RefCountedThreadSafe to specify a destructor trait.  This allows browser objects to specify which thread they're terminated on.  The benefit is we avoid the need to do manual ref counting when an object posts tasks to itself on different threads, if an object must be destructed on a specific thread.

This patch adds initial support and only shows one example with ResourceMessageFilter.  I will do the rest in a follow-up patch to keep things small.

BUG=25354
TEST=added unit tests
Review URL: http://codereview.chromium.org/338065

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30688 0039d316-1c4b-4281-b951-d872f2087c98
parent 6fad2633
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment