summaryrefslogtreecommitdiffstats
path: root/webkit/support/webkit_support.h
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/support/webkit_support.h')
-rw-r--r--webkit/support/webkit_support.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/webkit/support/webkit_support.h b/webkit/support/webkit_support.h
index d145955..a3711da 100644
--- a/webkit/support/webkit_support.h
+++ b/webkit/support/webkit_support.h
@@ -102,6 +102,17 @@ void ServeAsynchronousMockedRequests();
bool BeingDebugged();
// -------- Message loop and task
+
+// A wrapper for Chromium's Task class.
+// The lifecycle is managed by webkit_support thus
+// You shouldn't delete the object.
+// Note that canceled object is just removed.
+class TaskAdaptor {
+ public:
+ virtual ~TaskAdaptor() {}
+ virtual void Run() = 0;
+};
+
void RunMessageLoop();
void QuitMessageLoop();
void RunAllPendingMessages();
@@ -112,6 +123,8 @@ WebKit::WebDevToolsAgentClient::WebKitClientMessageLoop*
CreateDevToolsMessageLoop();
void PostDelayedTask(void (*func)(void*), void* context, int64 delay_ms);
+void PostDelayedTask(TaskAdaptor* task, int64 delay_ms);
+
// -------- File path and PathService
// Converts the specified path string to an absolute path in WebString.
// |utf8_path| is in UTF-8 encoding, not native multibyte string.