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

Unified Diff: content/child/blink_platform_impl.cc

Issue 937313003: chrome: Remove the use of WebWorkerRunLoop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 10 months 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
« no previous file with comments | « content/child/blink_platform_impl.h ('k') | content/child/worker_task_runner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/blink_platform_impl.cc
diff --git a/content/child/blink_platform_impl.cc b/content/child/blink_platform_impl.cc
index ffea5f9f7bde53e696c9a04c8c913286d074d3a8..0b8777cdc495c4766262d7604c9983b54c16640e 100644
--- a/content/child/blink_platform_impl.cc
+++ b/content/child/blink_platform_impl.cc
@@ -1040,14 +1040,26 @@ blink::WebGestureCurve* BlinkPlatformImpl::createFlingAnimationCurve(
void BlinkPlatformImpl::didStartWorkerRunLoop(
const blink::WebWorkerRunLoop& runLoop) {
- WorkerTaskRunner* worker_task_runner = WorkerTaskRunner::Instance();
- worker_task_runner->OnWorkerRunLoopStarted(runLoop);
+ // TODO(sad): Remove once this is removed from the blink::Platform interface.
+ // http://crbug.com/461664
+ didStartWorkerRunLoop();
}
void BlinkPlatformImpl::didStopWorkerRunLoop(
const blink::WebWorkerRunLoop& runLoop) {
+ // TODO(sad): Remove once this is removed from the blink::Platform interface.
+ // http://crbug.com/461664
+ didStopWorkerRunLoop();
+}
+
+void BlinkPlatformImpl::didStartWorkerRunLoop() {
+ WorkerTaskRunner* worker_task_runner = WorkerTaskRunner::Instance();
+ worker_task_runner->OnWorkerRunLoopStarted();
+}
+
+void BlinkPlatformImpl::didStopWorkerRunLoop() {
WorkerTaskRunner* worker_task_runner = WorkerTaskRunner::Instance();
- worker_task_runner->OnWorkerRunLoopStopped(runLoop);
+ worker_task_runner->OnWorkerRunLoopStopped();
}
blink::WebCrypto* BlinkPlatformImpl::crypto() {
« no previous file with comments | « content/child/blink_platform_impl.h ('k') | content/child/worker_task_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698