| Index: content/renderer/renderer_webkitplatformsupport_impl.cc
|
| diff --git a/content/renderer/renderer_webkitplatformsupport_impl.cc b/content/renderer/renderer_webkitplatformsupport_impl.cc
|
| index 55d07f668cc83f5e57d58a5875c58ab17ea54287..f4ffbe47c8f5dd09ca75da7beb5213b9e1f3ddfa 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->RegisterCurrentWorkerLoop(runLoop);
|
| +}
|
| +
|
| +void RendererWebKitPlatformSupportImpl::didStopWorkerRunLoop(
|
| + const WebKit::WebWorkerRunLoop& runLoop) {
|
| + DCHECK(ChildThread::current());
|
| + WorkerTaskRunner* worker_tracker =
|
| + ChildThread::current()->worker_task_runner();
|
| + worker_tracker->UnRegisterCurrentWorkerLoop(runLoop);
|
| +}
|
|
|