summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
Diffstat (limited to 'webkit')
-rw-r--r--webkit/glue/webkitclient_impl.cc4
-rw-r--r--webkit/glue/webkitclient_impl.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/webkit/glue/webkitclient_impl.cc b/webkit/glue/webkitclient_impl.cc
index 6f6a43c..781eafc 100644
--- a/webkit/glue/webkitclient_impl.cc
+++ b/webkit/glue/webkitclient_impl.cc
@@ -336,6 +336,10 @@ void WebKitClientImpl::callOnMainThread(void (*func)()) {
main_loop_->PostTask(FROM_HERE, NewRunnableFunction(func));
}
+void WebKitClientImpl::callOnMainThread(void (*func)(void*), void* context) {
+ main_loop_->PostTask(FROM_HERE, NewRunnableFunction(func, context));
+}
+
base::PlatformFile WebKitClientImpl::databaseOpenFile(
const WebKit::WebString& vfs_file_name, int desired_flags,
base::PlatformFile* dir_handle) {
diff --git a/webkit/glue/webkitclient_impl.h b/webkit/glue/webkitclient_impl.h
index 93e14e3..0f3ee75 100644
--- a/webkit/glue/webkitclient_impl.h
+++ b/webkit/glue/webkitclient_impl.h
@@ -69,6 +69,7 @@ class WebKitClientImpl : public WebKit::WebKitClient {
virtual void setSharedTimerFireTime(double fireTime);
virtual void stopSharedTimer();
virtual void callOnMainThread(void (*func)());
+ virtual void callOnMainThread(void (*func)(void*), void* context);
void SuspendSharedTimer();
void ResumeSharedTimer();