summaryrefslogtreecommitdiffstats
path: root/base/message_loop.h
diff options
context:
space:
mode:
authorjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-08 17:36:06 +0000
committerjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-08 17:36:06 +0000
commit1d2eb13fa0a3e8b1e03a22b8dd4d2af38b85b626 (patch)
tree61a73bac98aade2aaeb07e342529f53b5dc41265 /base/message_loop.h
parent118e6963e97ca9fa971589295742ff33b4073e47 (diff)
downloadchromium_src-1d2eb13fa0a3e8b1e03a22b8dd4d2af38b85b626.zip
chromium_src-1d2eb13fa0a3e8b1e03a22b8dd4d2af38b85b626.tar.gz
chromium_src-1d2eb13fa0a3e8b1e03a22b8dd4d2af38b85b626.tar.bz2
Add FD watching support to message_pump_libevent.
This CL goes along the same lines as the WatchSocket code, but we really need better encapsulation for this class in generel. Review URL: http://codereview.chromium.org/13129 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6513 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_loop.h')
-rw-r--r--base/message_loop.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/message_loop.h b/base/message_loop.h
index 8f16d8e..69db8c1 100644
--- a/base/message_loop.h
+++ b/base/message_loop.h
@@ -473,11 +473,14 @@ class MessageLoopForIO : public MessageLoop {
#elif defined(OS_POSIX)
typedef base::MessagePumpLibevent::Watcher Watcher;
+ typedef base::MessagePumpLibevent::FileWatcher FileWatcher;
// Please see MessagePumpLibevent for definitions of these methods.
void WatchSocket(int socket, short interest_mask,
struct event* e, Watcher* watcher);
+ void WatchFileHandle(int fd, short interest_mask, event* e, FileWatcher*);
void UnwatchSocket(struct event* e);
+ void UnwatchFileHandle(event* e);
#endif // defined(OS_POSIX)
};