Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8565)

Unified Diff: base/message_loop/message_pump_glib.h

Issue 23537016: gtk: Some code cleanup for the message-pump. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/message_loop/message_pump_aurax11.cc ('k') | base/message_loop/message_pump_glib.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop/message_pump_glib.h
diff --git a/base/message_loop/message_pump_glib.h b/base/message_loop/message_pump_glib.h
index 33690d08586a667c6bfe999d3e7033ffc578badf..174bd051f5764dea5c8b26df6b12bce912dfb3c8 100644
--- a/base/message_loop/message_pump_glib.h
+++ b/base/message_loop/message_pump_glib.h
@@ -51,13 +51,6 @@ class BASE_EXPORT MessagePumpGlib : public MessagePump {
bool HandleCheck();
void HandleDispatch();
- // Adds an Observer, which will start receiving notifications immediately.
- void AddObserver(MessagePumpObserver* observer);
-
- // Removes an Observer. It is safe to call this method while an Observer is
- // receiving a notification callback.
- void RemoveObserver(MessagePumpObserver* observer);
-
// Overridden from MessagePump:
virtual void Run(Delegate* delegate) OVERRIDE;
virtual void Quit() OVERRIDE;
@@ -68,8 +61,6 @@ class BASE_EXPORT MessagePumpGlib : public MessagePump {
// Returns the dispatcher for the current run state (|state_->dispatcher|).
MessagePumpDispatcher* GetDispatcher();
- ObserverList<MessagePumpObserver>& observers() { return observers_; }
-
private:
// We may make recursive calls to Run, so we save state that needs to be
// separate between them in this structure type.
@@ -98,9 +89,6 @@ class BASE_EXPORT MessagePumpGlib : public MessagePump {
// Use a scoped_ptr to avoid needing the definition of GPollFD in the header.
scoped_ptr<GPollFD> wakeup_gpollfd_;
- // List of observers.
- ObserverList<MessagePumpObserver> observers_;
-
DISALLOW_COPY_AND_ASSIGN(MessagePumpGlib);
};
« no previous file with comments | « base/message_loop/message_pump_aurax11.cc ('k') | base/message_loop/message_pump_glib.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698