Chromium Code Reviews| Index: content/renderer/renderer_webkitplatformsupport_impl.cc |
| diff --git a/content/renderer/renderer_webkitplatformsupport_impl.cc b/content/renderer/renderer_webkitplatformsupport_impl.cc |
| index d687adcdfdc0e1d442d42b67f3f3f9a4c9ed242b..8f32f6daa0c74160c3c8437d29fafa458b50599b 100644 |
| --- a/content/renderer/renderer_webkitplatformsupport_impl.cc |
| +++ b/content/renderer/renderer_webkitplatformsupport_impl.cc |
| @@ -18,6 +18,7 @@ |
| #include "content/common/view_messages.h" |
| #include "content/common/webblobregistry_impl.h" |
| #include "content/common/webmessageportchannel_impl.h" |
| +#include "content/common/worker_task_runner.h" |
| #include "content/public/common/content_switches.h" |
| #include "content/public/renderer/content_renderer_client.h" |
| #include "content/renderer/gamepad_shared_memory_reader.h" |
| @@ -642,3 +643,19 @@ void RendererWebKitPlatformSupportImpl::GetPlugins( |
| RenderThreadImpl::current()->Send( |
| new ViewHostMsg_GetPlugins(refresh, plugins)); |
| } |
| + |
| +void RendererWebKitPlatformSupportImpl::didStartWorkerRunLoop( |
| + const WebKit::WebWorkerRunLoop& runLoop) { |
| + DCHECK(ChildThread::current()); |
| + WorkerTaskRunner* worker_tracker = |
| + ChildThread::current()->worker_task_runner(); |
| + worker_tracker->OnWorkerRunLoopStarted(runLoop); |
|
michaeln
2011/12/07 23:57:38
we could avoid altering and the dependency on Chil
dgrogan
2011/12/08 02:02:14
Changed.
|
| +} |
| + |
| +void RendererWebKitPlatformSupportImpl::didStopWorkerRunLoop( |
| + const WebKit::WebWorkerRunLoop& runLoop) { |
| + DCHECK(ChildThread::current()); |
| + WorkerTaskRunner* worker_tracker = |
| + ChildThread::current()->worker_task_runner(); |
| + worker_tracker->OnWorkerRunLoopStopped(runLoop); |
| +} |