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

Unified Diff: base/message_loop.cc

Issue 14068: Reverting 6911. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years 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.h ('k') | base/message_pump_libevent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop.cc
===================================================================
--- base/message_loop.cc (revision 6915)
+++ base/message_loop.cc (working copy)
@@ -593,17 +593,22 @@
#elif defined(OS_POSIX)
-bool MessageLoopForIO::WatchFileDescriptor(int fd,
- bool persistent,
- Mode mode,
- FileDescriptorWatcher *controller,
- Watcher *delegate) {
- return pump_libevent()->WatchFileDescriptor(
- fd,
- persistent,
- static_cast<base::MessagePumpLibevent::Mode>(mode),
- controller,
- delegate);
+void MessageLoopForIO::WatchSocket(int socket, short interest_mask,
+ struct event* e, Watcher* watcher) {
+ pump_libevent()->WatchSocket(socket, interest_mask, e, watcher);
}
+void MessageLoopForIO::WatchFileHandle(int fd, short interest_mask,
+ struct event* e, FileWatcher* watcher) {
+ pump_libevent()->WatchFileHandle(fd, interest_mask, e, watcher);
+}
+
+
+void MessageLoopForIO::UnwatchSocket(struct event* e) {
+ pump_libevent()->UnwatchSocket(e);
+}
+
+void MessageLoopForIO::UnwatchFileHandle(struct event* e) {
+ pump_libevent()->UnwatchFileHandle(e);
+}
#endif
« no previous file with comments | « base/message_loop.h ('k') | base/message_pump_libevent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698