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

Unified Diff: third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h

Issue 2513413003: Worker: Provide a way to access parent frame task runners from a worker thread (Closed)
Patch Set: update comments Created 4 years, 1 month 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/web/ServiceWorkerGlobalScopeProxy.h
diff --git a/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h b/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h
index 2260d753cdd369fa97bfb86b73e1fe5e2c4ae526..63b3278ba043d5cdd23fde26a9bd78c7848707ad 100644
--- a/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h
+++ b/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h
@@ -127,6 +127,7 @@ class ServiceWorkerGlobalScopeProxy final
const String& message,
SourceLocation*) override;
void postMessageToPageInspector(const String&) override;
+ ParentFrameTaskRunners* getParentFrameTaskRunners() override;
void didCreateWorkerGlobalScope(WorkerOrWorkletGlobalScope*) override;
void didInitializeWorkerContext() override;
void willEvaluateWorkerScript(size_t scriptSize,
@@ -161,6 +162,8 @@ class ServiceWorkerGlobalScopeProxy final
WebEmbeddedWorkerImpl* m_embeddedWorker;
Member<Document> m_document;
+ Member<ParentFrameTaskRunners> m_parentFrameTaskRunners;
+
HeapHashMap<int, Member<FetchEvent>> m_pendingPreloadFetchEvents;
WebServiceWorkerContextClient* m_client;

Powered by Google App Engine
This is Rietveld 408576698