summaryrefslogtreecommitdiffstats
path: root/webkit/support
diff options
context:
space:
mode:
authorprasadt@chromium.org <prasadt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-06 23:19:47 +0000
committerprasadt@chromium.org <prasadt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-06 23:19:47 +0000
commitc56e3e712a7cbd8981bb5e25ad07ec13ce297048 (patch)
tree87498ff9f18849641cec3852fd5f8eda9367835a /webkit/support
parentfb9d1f424cfcc4d6967cc104299dc697f17b748e (diff)
downloadchromium_src-c56e3e712a7cbd8981bb5e25ad07ec13ce297048.zip
chromium_src-c56e3e712a7cbd8981bb5e25ad07ec13ce297048.tar.gz
chromium_src-c56e3e712a7cbd8981bb5e25ad07ec13ce297048.tar.bz2
Added methods to webkit_support.* to support nested loops in chromium DRT.
BUG=58095 TEST=Build chromium Review URL: http://codereview.chromium.org/3616008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61728 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/support')
-rw-r--r--webkit/support/webkit_support.cc8
-rw-r--r--webkit/support/webkit_support.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/webkit/support/webkit_support.cc b/webkit/support/webkit_support.cc
index f955d78..e9c516a 100644
--- a/webkit/support/webkit_support.cc
+++ b/webkit/support/webkit_support.cc
@@ -345,6 +345,14 @@ void RunAllPendingMessages() {
MessageLoop::current()->RunAllPending();
}
+bool MessageLoopNestableTasksAllowed() {
+ return MessageLoop::current()->NestableTasksAllowed();
+}
+
+void MessageLoopSetNestableTasksAllowed(bool allowed) {
+ MessageLoop::current()->SetNestableTasksAllowed(allowed);
+}
+
void DispatchMessageLoop() {
MessageLoop* current = MessageLoop::current();
bool old_state = current->NestableTasksAllowed();
diff --git a/webkit/support/webkit_support.h b/webkit/support/webkit_support.h
index 745b979..b9642d8 100644
--- a/webkit/support/webkit_support.h
+++ b/webkit/support/webkit_support.h
@@ -98,6 +98,8 @@ void RunMessageLoop();
void QuitMessageLoop();
void RunAllPendingMessages();
void DispatchMessageLoop();
+bool MessageLoopNestableTasksAllowed();
+void MessageLoopSetNestableTasksAllowed(bool allowed);
WebKit::WebDevToolsAgentClient::WebKitClientMessageLoop*
CreateDevToolsMessageLoop();
void PostDelayedTask(void (*func)(void*), void* context, int64 delay_ms);