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

Unified Diff: base/message_loop.h

Issue 3094: As an intermediary step towards having a message pump handling IO through com... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 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 | « no previous file | base/message_loop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop.h
===================================================================
--- base/message_loop.h (revision 2577)
+++ base/message_loop.h (working copy)
@@ -423,6 +423,12 @@
void WillProcessMessage(const MSG& message);
void DidProcessMessage(const MSG& message);
void PumpOutPendingPaintMessages();
+
+ protected:
+ // TODO(rvargas): Make this platform independent.
+ base::MessagePumpWin* pump_ui() {
+ return static_cast<base::MessagePumpForUI*>(pump_.get());
+ }
#endif // defined(OS_WIN)
};
@@ -452,11 +458,17 @@
}
#if defined(OS_WIN)
- typedef base::MessagePumpWin::Watcher Watcher;
+ typedef base::MessagePumpForIO::Watcher Watcher;
// Please see MessagePumpWin for definitions of these methods.
void WatchObject(HANDLE object, Watcher* watcher);
+ protected:
+ // TODO(rvargas): Make this platform independent.
+ base::MessagePumpForIO* pump_io() {
+ return static_cast<base::MessagePumpForIO*>(pump_.get());
+ }
+
#elif defined(OS_POSIX)
typedef base::MessagePumpLibevent::Watcher Watcher;
@@ -464,7 +476,7 @@
void WatchSocket(int socket, short interest_mask,
struct event* e, Watcher* watcher);
void UnwatchSocket(struct event* e);
-#endif // defined(OS_WIN)
+#endif // defined(OS_POSIX)
};
// Do not add any member variables to MessageLoopForIO! This is important b/c
« no previous file with comments | « no previous file | base/message_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698