Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(892)

Unified Diff: content/renderer/renderer_webkitplatformsupport_impl.cc

Issue 8785013: Track webcore worker message loops in chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: lazy-init and leak worker task runner Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
+}
« content/common/worker_task_runner.h ('K') | « content/renderer/renderer_webkitplatformsupport_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698