| OLD | NEW |
| 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 915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 926 WorkerTaskRunner* worker_task_runner = WorkerTaskRunner::Instance(); | 926 WorkerTaskRunner* worker_task_runner = WorkerTaskRunner::Instance(); |
| 927 worker_task_runner->OnWorkerRunLoopStarted(runLoop); | 927 worker_task_runner->OnWorkerRunLoopStarted(runLoop); |
| 928 } | 928 } |
| 929 | 929 |
| 930 void BlinkPlatformImpl::didStopWorkerRunLoop( | 930 void BlinkPlatformImpl::didStopWorkerRunLoop( |
| 931 const blink::WebWorkerRunLoop& runLoop) { | 931 const blink::WebWorkerRunLoop& runLoop) { |
| 932 WorkerTaskRunner* worker_task_runner = WorkerTaskRunner::Instance(); | 932 WorkerTaskRunner* worker_task_runner = WorkerTaskRunner::Instance(); |
| 933 worker_task_runner->OnWorkerRunLoopStopped(runLoop); | 933 worker_task_runner->OnWorkerRunLoopStopped(runLoop); |
| 934 } | 934 } |
| 935 | 935 |
| 936 void BlinkPlatformImpl::didStartWorkerThread(blink::WebThread* thread) { | |
| 937 WorkerTaskRunner* worker_task_runner = WorkerTaskRunner::Instance(); | |
| 938 worker_task_runner->OnWorkerThreadStarted(thread); | |
| 939 } | |
| 940 | |
| 941 void BlinkPlatformImpl::didStopWorkerThread(blink::WebThread* thread) { | |
| 942 WorkerTaskRunner* worker_task_runner = WorkerTaskRunner::Instance(); | |
| 943 worker_task_runner->OnWorkerThreadStopped(thread); | |
| 944 } | |
| 945 | |
| 946 blink::WebCrypto* BlinkPlatformImpl::crypto() { | 936 blink::WebCrypto* BlinkPlatformImpl::crypto() { |
| 947 return &web_crypto_; | 937 return &web_crypto_; |
| 948 } | 938 } |
| 949 | 939 |
| 950 | 940 |
| 951 WebThemeEngine* BlinkPlatformImpl::themeEngine() { | 941 WebThemeEngine* BlinkPlatformImpl::themeEngine() { |
| 952 return &native_theme_engine_; | 942 return &native_theme_engine_; |
| 953 } | 943 } |
| 954 | 944 |
| 955 WebFallbackThemeEngine* BlinkPlatformImpl::fallbackThemeEngine() { | 945 WebFallbackThemeEngine* BlinkPlatformImpl::fallbackThemeEngine() { |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1133 } | 1123 } |
| 1134 | 1124 |
| 1135 // static | 1125 // static |
| 1136 void BlinkPlatformImpl::DestroyCurrentThread(void* thread) { | 1126 void BlinkPlatformImpl::DestroyCurrentThread(void* thread) { |
| 1137 WebThreadImplForMessageLoop* impl = | 1127 WebThreadImplForMessageLoop* impl = |
| 1138 static_cast<WebThreadImplForMessageLoop*>(thread); | 1128 static_cast<WebThreadImplForMessageLoop*>(thread); |
| 1139 delete impl; | 1129 delete impl; |
| 1140 } | 1130 } |
| 1141 | 1131 |
| 1142 } // namespace content | 1132 } // namespace content |
| OLD | NEW |