Index: base/message_loop/message_pump.h |
diff --git a/base/message_loop/message_pump.h b/base/message_loop/message_pump.h |
index 0ebba3a3e60ccfd07abb2808e2632a254a76747c..b2af6985f0b0e7c6710eb599466176c8a07ae752 100644 |
--- a/base/message_loop/message_pump.h |
+++ b/base/message_loop/message_pump.h |
@@ -6,10 +6,12 @@ |
#define BASE_MESSAGE_LOOP_MESSAGE_PUMP_H_ |
#include "base/base_export.h" |
+#include "base/basictypes.h" |
#include "base/threading/non_thread_safe.h" |
namespace base { |
+class TimeDelta; |
class TimeTicks; |
class BASE_EXPORT MessagePump : public NonThreadSafe { |
@@ -39,6 +41,13 @@ class BASE_EXPORT MessagePump : public NonThreadSafe { |
// Called from within Run just before the message pump goes to sleep. |
// Returns true to indicate that idle work was done. |
virtual bool DoIdleWork() = 0; |
+ |
+ // Via the two required out pointers, returns the length of the Delegate's |
+ // work queue and the length of time that the first item in the queue has |
jar (doing other things)
2013/09/04 01:20:17
nit: You already know this... and we talked about
|
+ // been waiting to run. If the work queue is empty, the count and delay |
+ // will both be zero. |
+ virtual void GetQueueingInformation(size_t* queue_count, |
+ TimeDelta* queueing_delay) {} |
}; |
MessagePump(); |