Index: base/message_pump_glib.h |
diff --git a/base/message_pump_glib.h b/base/message_pump_glib.h |
index f2b66169a58d7ca426fe096a517972faf8648a17..872b031df7e53833472ac6b56f6082306dafc2d8 100644 |
--- a/base/message_pump_glib.h |
+++ b/base/message_pump_glib.h |
@@ -41,6 +41,11 @@ class MessagePumpGlib : public MessagePump { |
virtual void RunWithDispatcher(Delegate* delegate, |
MessagePumpDispatcher* dispatcher); |
+ // Run a single iteration of the mainloop. A return value of true indicates |
+ // that an event was handled. |block| indicates if it should wait if no event |
+ // is ready for processing. |
+ virtual bool RunOnce(GMainContext* context, bool block) = 0; |
+ |
// Internal methods used for processing the pump callbacks. They are |
// public for simplicity but should not be used directly. HandlePrepare |
// is called during the prepare step of glib, and returns a timeout that |