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
Showing
- base/ref_counted.h 26 additions, 3 deletionsbase/ref_counted.h
- chrome/browser/chrome_thread.h 29 additions, 0 deletionschrome/browser/chrome_thread.h
- chrome/browser/chrome_thread_unittest.cc 96 additions, 60 deletionschrome/browser/chrome_thread_unittest.cc
- chrome/browser/renderer_host/file_system_accessor.cc 0 additions, 44 deletionschrome/browser/renderer_host/file_system_accessor.cc
- chrome/browser/renderer_host/file_system_accessor.h 0 additions, 74 deletionschrome/browser/renderer_host/file_system_accessor.h
- chrome/browser/renderer_host/file_system_accessor_unittest.cc 0 additions, 115 deletions...me/browser/renderer_host/file_system_accessor_unittest.cc
- chrome/browser/renderer_host/resource_message_filter.cc 34 additions, 36 deletionschrome/browser/renderer_host/resource_message_filter.cc
- chrome/browser/renderer_host/resource_message_filter.h 3 additions, 5 deletionschrome/browser/renderer_host/resource_message_filter.h
- chrome/chrome.gyp 0 additions, 3 deletionschrome/chrome.gyp
- ipc/ipc_channel_proxy.cc 6 additions, 0 deletionsipc/ipc_channel_proxy.cc
- ipc/ipc_channel_proxy.h 15 additions, 1 deletionipc/ipc_channel_proxy.h
Loading
Please register or sign in to comment