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

Side by Side Diff: third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp

Issue 2645613006: Worker: Stop using ExecutionContextTask on WorkerLoaderProxy::postTaskToWorkerGlobalScope (Closed)
Patch Set: address review comments Created 3 years, 11 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
« no previous file with comments | « third_party/WebKit/Source/web/WebSharedWorkerImpl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebSharedWorkerImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698