summaryrefslogtreecommitdiffstats
path: root/base/message_loop_proxy.h
diff options
context:
space:
mode:
authorsanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-03 21:46:19 +0000
committersanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-03 21:46:19 +0000
commit83a7d2eb244232d057b245e43ae867ad27493bd1 (patch)
tree2b04a04f09228cb741c24f3e3463f4061779113e /base/message_loop_proxy.h
parent4766b28875c45e5eca6ff16272f85c691e9a181a (diff)
downloadchromium_src-83a7d2eb244232d057b245e43ae867ad27493bd1.zip
chromium_src-83a7d2eb244232d057b245e43ae867ad27493bd1.tar.gz
chromium_src-83a7d2eb244232d057b245e43ae867ad27493bd1.tar.bz2
Changed UrlFetcher to use a MessageLoopProxy instead of directly relying on ChromeThread. This will allow us to make UrlFetcher independent of ChromeThread and we can then move it to chrome/common.
BUG=None TEST=UrlFetcher unit-tests Review URL: http://codereview.chromium.org/1702016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46282 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_loop_proxy.h')
-rw-r--r--base/message_loop_proxy.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/message_loop_proxy.h b/base/message_loop_proxy.h
index 0cfe7ee..4b6abce 100644
--- a/base/message_loop_proxy.h
+++ b/base/message_loop_proxy.h
@@ -28,6 +28,9 @@ class MessageLoopProxy : public base::RefCountedThreadSafe<MessageLoopProxy> {
const tracked_objects::Location& from_here,
Task* task,
int64 delay_ms) = 0;
+ // A method which checks if the caller is currently running in the thread that
+ // this proxy represents.
+ virtual bool BelongsToCurrentThread() = 0;
template <class T>
bool DeleteSoon(const tracked_objects::Location& from_here,