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

Unified Diff: third_party/WebKit/Source/core/workers/Worklet.h

Issue 2939773005: [POC] Implement "module responses map" concept (Closed)
Patch Set: rebase Created 3 years, 5 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/core/workers/Worklet.h
diff --git a/third_party/WebKit/Source/core/workers/Worklet.h b/third_party/WebKit/Source/core/workers/Worklet.h
index d902fe5cc87c35b5bbca9b6ddb7dca1db371f3c9..50160dd6769b969730cbf8a7d0333b22cc5e451f 100644
--- a/third_party/WebKit/Source/core/workers/Worklet.h
+++ b/third_party/WebKit/Source/core/workers/Worklet.h
@@ -9,6 +9,7 @@
#include "core/CoreExport.h"
#include "core/dom/ContextLifecycleObserver.h"
#include "core/workers/WorkletGlobalScopeProxy.h"
+#include "core/workers/WorkletModuleResponsesMap.h"
#include "core/workers/WorkletOptions.h"
#include "platform/bindings/ScriptWrappable.h"
#include "platform/heap/Handle.h"
@@ -71,6 +72,12 @@ class CORE_EXPORT Worklet : public GarbageCollectedFinalized<Worklet>,
// WorkletGlobalScope."
// https://drafts.css-houdini.org/worklets/#worklet-section
HeapHashSet<Member<WorkletGlobalScopeProxy>> proxies_;
+
+ // "A Worklet has a module responses map. This is a ordered map of module URLs
+ // to values that are a fetch responses. The map's entries are ordered based
+ // on their insertion order. Access to this map should be thread-safe."
+ // https://drafts.css-houdini.org/worklets/#module-responses-map
+ Member<WorkletModuleResponsesMap> module_responses_map_;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698