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

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: ^ and $. 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
« no previous file with comments | « 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 b85daf65aa13e9b7821a13ad6cda19a9bedd2fd5..831473714c74bb51afb573ead14df8850e140d07 100644
--- a/base/run_loop.h
+++ b/base/run_loop.h
@@ -15,6 +15,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
@@ -76,6 +80,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();
« no previous file with comments | « base/message_pump_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698