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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 SecurityOrigin* starterOrigin = document->getSecurityOrigin(); | 379 SecurityOrigin* starterOrigin = document->getSecurityOrigin(); |
380 | 380 |
381 WorkerClients* workerClients = WorkerClients::create(); | 381 WorkerClients* workerClients = WorkerClients::create(); |
382 provideLocalFileSystemToWorker(workerClients, | 382 provideLocalFileSystemToWorker(workerClients, |
383 LocalFileSystemClient::create()); | 383 LocalFileSystemClient::create()); |
384 WebSecurityOrigin webSecurityOrigin(m_loadingDocument->getSecurityOrigin()); | 384 WebSecurityOrigin webSecurityOrigin(m_loadingDocument->getSecurityOrigin()); |
385 provideContentSettingsClientToWorker( | 385 provideContentSettingsClientToWorker( |
386 workerClients, | 386 workerClients, |
387 WTF::wrapUnique( | 387 WTF::wrapUnique( |
388 m_client->createWorkerContentSettingsClientProxy(webSecurityOrigin))); | 388 m_client->createWorkerContentSettingsClientProxy(webSecurityOrigin))); |
389 provideIndexedDBClientToWorker(workerClients, IndexedDBClientImpl::create()); | 389 provideIndexedDBClientToWorker(workerClients, |
| 390 IndexedDBClientImpl::create(*workerClients)); |
390 ContentSecurityPolicy* contentSecurityPolicy = | 391 ContentSecurityPolicy* contentSecurityPolicy = |
391 m_mainScriptLoader->releaseContentSecurityPolicy(); | 392 m_mainScriptLoader->releaseContentSecurityPolicy(); |
392 WorkerThreadStartMode startMode = | 393 WorkerThreadStartMode startMode = |
393 m_workerInspectorProxy->workerStartMode(document); | 394 m_workerInspectorProxy->workerStartMode(document); |
394 std::unique_ptr<WorkerSettings> workerSettings = | 395 std::unique_ptr<WorkerSettings> workerSettings = |
395 WTF::wrapUnique(new WorkerSettings(document->settings())); | 396 WTF::wrapUnique(new WorkerSettings(document->settings())); |
396 std::unique_ptr<WorkerThreadStartupData> startupData = | 397 std::unique_ptr<WorkerThreadStartupData> startupData = |
397 WorkerThreadStartupData::create( | 398 WorkerThreadStartupData::create( |
398 m_url, m_loadingDocument->userAgent(), m_mainScriptLoader->script(), | 399 m_url, m_loadingDocument->userAgent(), m_mainScriptLoader->script(), |
399 nullptr, startMode, | 400 nullptr, startMode, |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 if (devtoolsAgent) | 465 if (devtoolsAgent) |
465 devtoolsAgent->dispatchOnInspectorBackend(sessionId, callId, method, | 466 devtoolsAgent->dispatchOnInspectorBackend(sessionId, callId, method, |
466 message); | 467 message); |
467 } | 468 } |
468 | 469 |
469 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) { | 470 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) { |
470 return new WebSharedWorkerImpl(client); | 471 return new WebSharedWorkerImpl(client); |
471 } | 472 } |
472 | 473 |
473 } // namespace blink | 474 } // namespace blink |
OLD | NEW |