| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 m_parentFrameTaskRunners->get(TaskType::Networking) | 310 m_parentFrameTaskRunners->get(TaskType::Networking) |
| 311 ->postTask(FROM_HERE, | 311 ->postTask(FROM_HERE, |
| 312 crossThreadBind( | 312 crossThreadBind( |
| 313 &ExecutionContextTask::performTaskIfContextIsValid, | 313 &ExecutionContextTask::performTaskIfContextIsValid, |
| 314 WTF::passed(std::move(task)), | 314 WTF::passed(std::move(task)), |
| 315 wrapCrossThreadWeakPersistent(m_loadingDocument.get()))); | 315 wrapCrossThreadWeakPersistent(m_loadingDocument.get()))); |
| 316 } | 316 } |
| 317 | 317 |
| 318 void WebSharedWorkerImpl::postTaskToWorkerGlobalScope( | 318 void WebSharedWorkerImpl::postTaskToWorkerGlobalScope( |
| 319 const WebTraceLocation& location, | 319 const WebTraceLocation& location, |
| 320 std::unique_ptr<ExecutionContextTask> task) { | 320 std::unique_ptr<WTF::CrossThreadClosure> task) { |
| 321 m_workerThread->postTask(location, std::move(task)); | 321 m_workerThread->postTask(location, std::move(task)); |
| 322 } | 322 } |
| 323 | 323 |
| 324 void WebSharedWorkerImpl::connect(WebMessagePortChannel* webChannel) { | 324 void WebSharedWorkerImpl::connect(WebMessagePortChannel* webChannel) { |
| 325 workerThread()->postTask( | 325 workerThread()->postTask( |
| 326 BLINK_FROM_HERE, | 326 BLINK_FROM_HERE, |
| 327 createCrossThreadTask( | 327 createCrossThreadTask( |
| 328 &connectTask, | 328 &connectTask, |
| 329 WTF::passed(WebMessagePortChannelUniquePtr(webChannel)))); | 329 WTF::passed(WebMessagePortChannelUniquePtr(webChannel)))); |
| 330 } | 330 } |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 if (devtoolsAgent) | 466 if (devtoolsAgent) |
| 467 devtoolsAgent->dispatchOnInspectorBackend(sessionId, callId, method, | 467 devtoolsAgent->dispatchOnInspectorBackend(sessionId, callId, method, |
| 468 message); | 468 message); |
| 469 } | 469 } |
| 470 | 470 |
| 471 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) { | 471 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) { |
| 472 return new WebSharedWorkerImpl(client); | 472 return new WebSharedWorkerImpl(client); |
| 473 } | 473 } |
| 474 | 474 |
| 475 } // namespace blink | 475 } // namespace blink |
| OLD | NEW |