ServiceWorker registration should store any script fetched through importScripts
[WebKit-https.git] / Source / WebCore / workers / service / ServiceWorkerGlobalScope.h
index 1369499..0b7f78c 100644 (file)
@@ -64,6 +64,9 @@ public:
 
     void updateExtendedEventsSet(ExtendableEvent* newEvent = nullptr);
 
+    const ServiceWorkerContextData::ImportedScript* scriptResource(const URL&) const;
+    void setScriptResource(const URL&, ServiceWorkerContextData::ImportedScript&&);
+
 private:
     ServiceWorkerGlobalScope(const ServiceWorkerContextData&, const URL&, Ref<SecurityOrigin>&&, const String& identifier, const String& userAgent, bool isOnline, ServiceWorkerThread&, bool shouldBypassMainWorldContentSecurityPolicy, Ref<SecurityOrigin>&& topOrigin, MonotonicTime timeOrigin, IDBClient::IDBConnectionProxy*, SocketProvider*, PAL::SessionID);