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

Side by Side Diff: content/child/blink_platform_impl.cc

Issue 393283003: Add WorkerThread based methods for start/stop of worker threads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add math.h to make gn build happy. Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/child/blink_platform_impl.h ('k') | content/child/webthread_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/child/blink_platform_impl.h" 5 #include "content/child/blink_platform_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after
915 WorkerTaskRunner* worker_task_runner = WorkerTaskRunner::Instance(); 915 WorkerTaskRunner* worker_task_runner = WorkerTaskRunner::Instance();
916 worker_task_runner->OnWorkerRunLoopStarted(runLoop); 916 worker_task_runner->OnWorkerRunLoopStarted(runLoop);
917 } 917 }
918 918
919 void BlinkPlatformImpl::didStopWorkerRunLoop( 919 void BlinkPlatformImpl::didStopWorkerRunLoop(
920 const blink::WebWorkerRunLoop& runLoop) { 920 const blink::WebWorkerRunLoop& runLoop) {
921 WorkerTaskRunner* worker_task_runner = WorkerTaskRunner::Instance(); 921 WorkerTaskRunner* worker_task_runner = WorkerTaskRunner::Instance();
922 worker_task_runner->OnWorkerRunLoopStopped(runLoop); 922 worker_task_runner->OnWorkerRunLoopStopped(runLoop);
923 } 923 }
924 924
925 void BlinkPlatformImpl::didStartWorkerThread(blink::WebThread* thread) {
926 WorkerTaskRunner* worker_task_runner = WorkerTaskRunner::Instance();
927 worker_task_runner->OnWorkerThreadStarted(thread);
928 }
929
930 void BlinkPlatformImpl::didStopWorkerThread(blink::WebThread* thread) {
931 WorkerTaskRunner* worker_task_runner = WorkerTaskRunner::Instance();
932 worker_task_runner->OnWorkerThreadStopped(thread);
933 }
934
925 blink::WebCrypto* BlinkPlatformImpl::crypto() { 935 blink::WebCrypto* BlinkPlatformImpl::crypto() {
926 WebCryptoImpl::EnsureInit(); 936 WebCryptoImpl::EnsureInit();
927 return &web_crypto_; 937 return &web_crypto_;
928 } 938 }
929 939
930 940
931 WebThemeEngine* BlinkPlatformImpl::themeEngine() { 941 WebThemeEngine* BlinkPlatformImpl::themeEngine() {
932 return &native_theme_engine_; 942 return &native_theme_engine_;
933 } 943 }
934 944
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
1113 } 1123 }
1114 1124
1115 // static 1125 // static
1116 void BlinkPlatformImpl::DestroyCurrentThread(void* thread) { 1126 void BlinkPlatformImpl::DestroyCurrentThread(void* thread) {
1117 WebThreadImplForMessageLoop* impl = 1127 WebThreadImplForMessageLoop* impl =
1118 static_cast<WebThreadImplForMessageLoop*>(thread); 1128 static_cast<WebThreadImplForMessageLoop*>(thread);
1119 delete impl; 1129 delete impl;
1120 } 1130 }
1121 1131
1122 } // namespace content 1132 } // namespace content
OLDNEW
« no previous file with comments | « content/child/blink_platform_impl.h ('k') | content/child/webthread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698