diff options
Diffstat (limited to 'base/message_loop_proxy.h')
-rw-r--r-- | base/message_loop_proxy.h | 3 |
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, |