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

Unified Diff: base/run_loop.h

Issue 10689161: Adds MessageLoopUIApplication for use on iOS. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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
« base/message_pump_mac.mm ('K') | « base/message_pump_mac.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/run_loop.h
diff --git a/base/run_loop.h b/base/run_loop.h
index 6fc0ed27908b6a0d263459317734e4d3a2bb64aa..16b91dd911d0aa8b91a12f20d00a7884013e3217 100644
--- a/base/run_loop.h
+++ b/base/run_loop.h
@@ -16,6 +16,10 @@ namespace base {
class MessagePumpForUI;
#endif
+#if defined(OS_IOS)
+class MessagePumpUIApplication;
+#endif
+
// Helper class to Run a nested MessageLoop. Please do not use nested
// MessageLoops in production code! If you must, use this class instead of
// calling MessageLoop::Run/Quit directly. RunLoop::Run can only be called once
@@ -77,6 +81,12 @@ class BASE_EXPORT RunLoop {
friend class base::MessagePumpForUI;
#endif
+#if defined(OS_IOS)
+ // iOS doesn't support the blocking MessageLoop::Run, so it calls
+ // BeforeRun directly.
+ friend class base::MessagePumpUIApplication;
+#endif
+
// Return false to abort the Run.
bool BeforeRun();
void AfterRun();
« base/message_pump_mac.mm ('K') | « base/message_pump_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698