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

Side by Side Diff: base/message_loop/message_pump_libevent.h

Issue 15709015: Make sure that the UI window created by base::MessagePumpForUI is destoyed on the same thread (Wind… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/message_loop/message_pump_glib.cc ('k') | base/message_loop/message_pump_libevent.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_MESSAGE_LOOP_MESSAGE_PUMP_LIBEVENT_H_ 5 #ifndef BASE_MESSAGE_LOOP_MESSAGE_PUMP_LIBEVENT_H_
6 #define BASE_MESSAGE_LOOP_MESSAGE_PUMP_LIBEVENT_H_ 6 #define BASE_MESSAGE_LOOP_MESSAGE_PUMP_LIBEVENT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 Watcher *delegate); 118 Watcher *delegate);
119 119
120 void AddIOObserver(IOObserver* obs); 120 void AddIOObserver(IOObserver* obs);
121 void RemoveIOObserver(IOObserver* obs); 121 void RemoveIOObserver(IOObserver* obs);
122 122
123 // MessagePump methods: 123 // MessagePump methods:
124 virtual void Run(Delegate* delegate) OVERRIDE; 124 virtual void Run(Delegate* delegate) OVERRIDE;
125 virtual void Quit() OVERRIDE; 125 virtual void Quit() OVERRIDE;
126 virtual void ScheduleWork() OVERRIDE; 126 virtual void ScheduleWork() OVERRIDE;
127 virtual void ScheduleDelayedWork(const TimeTicks& delayed_work_time) OVERRIDE; 127 virtual void ScheduleDelayedWork(const TimeTicks& delayed_work_time) OVERRIDE;
128 virtual void Shutdown() OVERRIDE;
128 129
129 protected: 130 protected:
130 virtual ~MessagePumpLibevent(); 131 virtual ~MessagePumpLibevent();
131 132
132 private: 133 private:
133 friend class MessagePumpLibeventTest; 134 friend class MessagePumpLibeventTest;
134 135
135 void WillProcessIOEvent(); 136 void WillProcessIOEvent();
136 void DidProcessIOEvent(); 137 void DidProcessIOEvent();
137 138
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 event* wakeup_event_; 171 event* wakeup_event_;
171 172
172 ObserverList<IOObserver> io_observers_; 173 ObserverList<IOObserver> io_observers_;
173 ThreadChecker watch_file_descriptor_caller_checker_; 174 ThreadChecker watch_file_descriptor_caller_checker_;
174 DISALLOW_COPY_AND_ASSIGN(MessagePumpLibevent); 175 DISALLOW_COPY_AND_ASSIGN(MessagePumpLibevent);
175 }; 176 };
176 177
177 } // namespace base 178 } // namespace base
178 179
179 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_LIBEVENT_H_ 180 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_LIBEVENT_H_
OLDNEW
« no previous file with comments | « base/message_loop/message_pump_glib.cc ('k') | base/message_loop/message_pump_libevent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698