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

Unified Diff: third_party/WebKit/Source/modules/exported/WebEmbeddedWorkerImpl.cpp

Issue 2939623002: [DONT COMMIT] WIP: WorkerClientsInitializer (Closed)
Patch Set: finalize2 Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/exported/WebEmbeddedWorkerImpl.cpp
diff --git a/third_party/WebKit/Source/modules/exported/WebEmbeddedWorkerImpl.cpp b/third_party/WebKit/Source/modules/exported/WebEmbeddedWorkerImpl.cpp
index dd2347cb4207dca8749a7cd2e8eef846bdb80a38..e61847db4914b3528de515b91868280a005e0a7f 100644
--- a/third_party/WebKit/Source/modules/exported/WebEmbeddedWorkerImpl.cpp
+++ b/third_party/WebKit/Source/modules/exported/WebEmbeddedWorkerImpl.cpp
@@ -46,13 +46,11 @@
#include "core/loader/WorkerFetchContext.h"
#include "core/probe/CoreProbes.h"
#include "core/workers/ParentFrameTaskRunners.h"
-#include "core/workers/WorkerClients.h"
#include "core/workers/WorkerContentSettingsClient.h"
#include "core/workers/WorkerGlobalScope.h"
#include "core/workers/WorkerInspectorProxy.h"
#include "core/workers/WorkerScriptLoader.h"
#include "core/workers/WorkerThreadStartupData.h"
-#include "modules/indexeddb/IndexedDBClientImpl.h"
#include "modules/serviceworkers/ServiceWorkerContainerClient.h"
#include "modules/serviceworkers/ServiceWorkerGlobalScopeClientImpl.h"
#include "modules/serviceworkers/ServiceWorkerGlobalScopeProxy.h"
@@ -82,6 +80,8 @@
namespace blink {
+template class MODULES_EXPORT WorkerClientsInitializer<WebEmbeddedWorkerImpl>;
+
WebEmbeddedWorker* WebEmbeddedWorker::Create(
WebServiceWorkerContextClient* client,
WebContentSettingsClient* content_settings_client) {
@@ -410,10 +410,10 @@ void WebEmbeddedWorkerImpl::StartWorkerThread() {
SecurityOrigin* starter_origin = document->GetSecurityOrigin();
WorkerClients* worker_clients = WorkerClients::Create();
+ WorkerClientsInitializer<WebEmbeddedWorkerImpl>::Run(worker_clients);
+
ProvideContentSettingsClientToWorker(worker_clients,
std::move(content_settings_client_));
- ProvideIndexedDBClientToWorker(worker_clients,
- IndexedDBClientImpl::Create(*worker_clients));
ProvideServiceWorkerGlobalScopeClientToWorker(
worker_clients,
ServiceWorkerGlobalScopeClientImpl::Create(*worker_context_client_));
« no previous file with comments | « third_party/WebKit/Source/modules/exported/WebEmbeddedWorkerImpl.h ('k') | third_party/WebKit/Source/web/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698