summaryrefslogtreecommitdiffstats
path: root/base/run_loop.h
diff options
context:
space:
mode:
authorrohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-13 11:02:57 +0000
committerrohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-13 11:02:57 +0000
commitfeb727e9f96d54ad1d079c5d638707f6f31c98c6 (patch)
treee5b95a21f44ee1968aa319141e914364f5f47f1f /base/run_loop.h
parent5b317bc1cd0f78ed354ce009ef8ab870cfd54667 (diff)
downloadchromium_src-feb727e9f96d54ad1d079c5d638707f6f31c98c6.zip
chromium_src-feb727e9f96d54ad1d079c5d638707f6f31c98c6.tar.gz
chromium_src-feb727e9f96d54ad1d079c5d638707f6f31c98c6.tar.bz2
Adds MessageLoopUIApplication for use on iOS.
BUG=None TEST=None Review URL: https://chromiumcodereview.appspot.com/10689161 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146553 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/run_loop.h')
-rw-r--r--base/run_loop.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/base/run_loop.h b/base/run_loop.h
index b85daf6..8314737 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();