Index: base/message_loop/message_loop.h |
diff --git a/base/message_loop/message_loop.h b/base/message_loop/message_loop.h |
index 6539c65654926e986530b020fa22f92c9afb3420..07f910525ff71db0191d566e3bb2fabd2af3308a 100644 |
--- a/base/message_loop/message_loop.h |
+++ b/base/message_loop/message_loop.h |
@@ -34,14 +34,10 @@ |
#include "base/message_loop/message_pump_libevent.h" |
#if !defined(OS_MACOSX) && !defined(OS_ANDROID) |
-#if defined(USE_AURA) && defined(USE_X11) && !defined(OS_NACL) |
-#include "base/message_loop/message_pump_x11.h" |
+#if defined(USE_GLIB) && !defined(OS_NACL) |
+#include "base/message_loop/message_pump_glib.h" |
#elif !defined(OS_ANDROID_HOST) |
-#define USE_GTK_MESSAGE_PUMP |
-#include "base/message_loop/message_pump_gtk.h" |
-#if defined(TOOLKIT_GTK) |
-#include "base/message_loop/message_pump_x11.h" |
-#endif |
+#include "base/message_loop/message_pump_glib.h" |
#endif |
#endif |
@@ -95,8 +91,6 @@ class BASE_EXPORT MessageLoop : public MessagePump::Delegate { |
public: |
#if defined(OS_WIN) |
typedef MessagePumpObserver Observer; |
-#elif defined(USE_GTK_MESSAGE_PUMP) |
- typedef MessagePumpGdkObserver Observer; |
#endif |
// A MessageLoop has a particular type, which indicates the set of |
@@ -413,13 +407,6 @@ class BASE_EXPORT MessageLoop : public MessagePump::Delegate { |
MessagePumpLibevent* pump_libevent() { |
return static_cast<MessagePumpLibevent*>(pump_.get()); |
} |
-#if defined(TOOLKIT_GTK) |
- friend class MessagePumpX11; |
- MessagePumpX11* pump_gpu() { |
- DCHECK_EQ(TYPE_GPU, type()); |
- return static_cast<MessagePumpX11*>(pump_.get()); |
- } |
-#endif |
#endif |
scoped_ptr<MessagePump> pump_; |
@@ -593,10 +580,6 @@ class BASE_EXPORT MessageLoopForUI : public MessageLoop { |
#endif |
protected: |
-#if defined(USE_X11) |
- friend class MessagePumpX11; |
-#endif |
- |
#if !defined(OS_MACOSX) && !defined(OS_ANDROID) |
// TODO(rvargas): Make this platform independent. |
MessagePumpForUI* pump_ui() { |