| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "config.h" | |
| 6 | |
| 7 #include "core/workers/WorkerLoaderProxy.h" | 5 #include "core/workers/WorkerLoaderProxy.h" |
| 8 | 6 |
| 9 #include "core/dom/ExecutionContextTask.h" | 7 #include "core/dom/ExecutionContextTask.h" |
| 10 | 8 |
| 11 namespace blink { | 9 namespace blink { |
| 12 | 10 |
| 13 WorkerLoaderProxy::WorkerLoaderProxy(WorkerLoaderProxyProvider* loaderProxyProvi
der) | 11 WorkerLoaderProxy::WorkerLoaderProxy(WorkerLoaderProxyProvider* loaderProxyProvi
der) |
| 14 : m_loaderProxyProvider(loaderProxyProvider) | 12 : m_loaderProxyProvider(loaderProxyProvider) |
| 15 { | 13 { |
| 16 } | 14 } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 39 bool WorkerLoaderProxy::postTaskToWorkerGlobalScope(PassOwnPtr<ExecutionContextT
ask> task) | 37 bool WorkerLoaderProxy::postTaskToWorkerGlobalScope(PassOwnPtr<ExecutionContextT
ask> task) |
| 40 { | 38 { |
| 41 MutexLocker locker(m_lock); | 39 MutexLocker locker(m_lock); |
| 42 if (!m_loaderProxyProvider) | 40 if (!m_loaderProxyProvider) |
| 43 return false; | 41 return false; |
| 44 | 42 |
| 45 return m_loaderProxyProvider->postTaskToWorkerGlobalScope(task); | 43 return m_loaderProxyProvider->postTaskToWorkerGlobalScope(task); |
| 46 } | 44 } |
| 47 | 45 |
| 48 } // namespace blink | 46 } // namespace blink |
| OLD | NEW |