summaryrefslogtreecommitdiffstats
path: root/base/message_loop.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/message_loop.h')
-rw-r--r--base/message_loop.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/message_loop.h b/base/message_loop.h
index eeba6bb..0812c0f 100644
--- a/base/message_loop.h
+++ b/base/message_loop.h
@@ -258,6 +258,10 @@ class BASE_EXPORT MessageLoop : public base::MessagePump::Delegate {
// arbitrary MessageLoop to QuitWhenIdle.
static base::Closure QuitWhenIdleClosure();
+ // Returns true if this loop is |type|. This allows subclasses (especially
+ // those in tests) to specialize how they are identified.
+ virtual bool IsType(Type type) const;
+
// Returns the type passed to the constructor.
Type type() const { return type_; }