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

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: add static accessor to WorkerTaskRunner, use custom ObserverList 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..13f2ab20608a84d262422262454aa9f729cc3efb 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,17 @@ void RendererWebKitPlatformSupportImpl::GetPlugins(
RenderThreadImpl::current()->Send(
new ViewHostMsg_GetPlugins(refresh, plugins));
}
+
+void RendererWebKitPlatformSupportImpl::didStartWorkerRunLoop(
+ const WebKit::WebWorkerRunLoop& runLoop) {
+ DCHECK(ChildThread::current());
michaeln 2011/12/08 03:10:47 does the dcheck still apply?
dgrogan 2011/12/09 03:20:41 Nope, deleted.
+ WorkerTaskRunner* worker_tracker = WorkerTaskRunner::Instance();
darin (slow to review) 2011/12/08 22:41:21 why is the variable called worker_tracker when the
dgrogan 2011/12/09 03:20:41 In an old revision the class was called WorkerTrac
+ worker_tracker->OnWorkerRunLoopStarted(runLoop);
+}
+
+void RendererWebKitPlatformSupportImpl::didStopWorkerRunLoop(
+ const WebKit::WebWorkerRunLoop& runLoop) {
+ DCHECK(ChildThread::current());
+ WorkerTaskRunner* worker_tracker = WorkerTaskRunner::Instance();
+ worker_tracker->OnWorkerRunLoopStopped(runLoop);
+}

Powered by Google App Engine
This is Rietveld 408576698