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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 WTF::wrapUnique(new WorkerSettings(document->settings())); | 391 WTF::wrapUnique(new WorkerSettings(document->settings())); |
392 std::unique_ptr<WorkerThreadStartupData> startupData = | 392 std::unique_ptr<WorkerThreadStartupData> startupData = |
393 WorkerThreadStartupData::create( | 393 WorkerThreadStartupData::create( |
394 m_url, m_loadingDocument->userAgent(), m_mainScriptLoader->script(), | 394 m_url, m_loadingDocument->userAgent(), m_mainScriptLoader->script(), |
395 nullptr, startMode, | 395 nullptr, startMode, |
396 contentSecurityPolicy ? contentSecurityPolicy->headers().get() | 396 contentSecurityPolicy ? contentSecurityPolicy->headers().get() |
397 : nullptr, | 397 : nullptr, |
398 m_mainScriptLoader->getReferrerPolicy(), starterOrigin, workerClients, | 398 m_mainScriptLoader->getReferrerPolicy(), starterOrigin, workerClients, |
399 m_mainScriptLoader->responseAddressSpace(), | 399 m_mainScriptLoader->responseAddressSpace(), |
400 m_mainScriptLoader->originTrialTokens(), std::move(workerSettings), | 400 m_mainScriptLoader->originTrialTokens(), std::move(workerSettings), |
401 WorkerV8Settings::Default()); | 401 WorkerV8Settings::Default(), false /* inspectorNetworkCapability */); |
402 | 402 |
403 // SharedWorker can sometimes run tasks that are initiated by/associated with | 403 // SharedWorker can sometimes run tasks that are initiated by/associated with |
404 // a document's frame but these documents can be from a different process. So | 404 // a document's frame but these documents can be from a different process. So |
405 // we intentionally populate the task runners with null document in order to | 405 // we intentionally populate the task runners with null document in order to |
406 // use the thread's default task runner. Note that |m_document| should not be | 406 // use the thread's default task runner. Note that |m_document| should not be |
407 // used as it's a dummy document for loading that doesn't represent the frame | 407 // used as it's a dummy document for loading that doesn't represent the frame |
408 // of any associated document. | 408 // of any associated document. |
409 m_parentFrameTaskRunners = ParentFrameTaskRunners::create(nullptr); | 409 m_parentFrameTaskRunners = ParentFrameTaskRunners::create(nullptr); |
410 | 410 |
411 m_loaderProxy = WorkerLoaderProxy::create(this); | 411 m_loaderProxy = WorkerLoaderProxy::create(this); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 if (devtoolsAgent) | 462 if (devtoolsAgent) |
463 devtoolsAgent->dispatchOnInspectorBackend(sessionId, callId, method, | 463 devtoolsAgent->dispatchOnInspectorBackend(sessionId, callId, method, |
464 message); | 464 message); |
465 } | 465 } |
466 | 466 |
467 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) { | 467 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) { |
468 return new WebSharedWorkerImpl(client); | 468 return new WebSharedWorkerImpl(client); |
469 } | 469 } |
470 | 470 |
471 } // namespace blink | 471 } // namespace blink |
OLD | NEW |