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

Unified Diff: third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.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/MainThreadWorkletGlobalScope.h
diff --git a/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.h b/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.h
index c204715a372c9ad1ab6c2844d99be4e562fdc482..d2d6ff558603cc994c55cfc6d4f5610e5292a8b1 100644
--- a/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.h
+++ b/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.h
@@ -9,6 +9,7 @@
#include "core/dom/ContextLifecycleObserver.h"
#include "core/dom/ExecutionContext.h"
#include "core/workers/WorkletGlobalScope.h"
+#include "core/workers/WorkletModuleResponsesMapProxy.h"
#include "core/workers/WorkletPendingTasks.h"
#include "platform/WebTaskRunner.h"
#include "public/platform/WebURLRequest.h"
@@ -17,6 +18,7 @@ namespace blink {
class ConsoleMessage;
class LocalFrame;
+class WorkletModuleResponsesMap;
class CORE_EXPORT MainThreadWorkletGlobalScope
: public WorkletGlobalScope,
@@ -43,18 +45,24 @@ class CORE_EXPORT MainThreadWorkletGlobalScope
// the given WorkletPendingTasks via |outside_settings_task_runner| (i.e., the
// parent frame's task runner).
void FetchAndInvokeScript(const KURL& module_url_record,
+ WorkletModuleResponsesMap*,
WebURLRequest::FetchCredentialsMode,
RefPtr<WebTaskRunner> outside_settings_task_runner,
WorkletPendingTasks*);
void Terminate();
+ WorkletModuleResponsesMapProxy* GetModuleResponsesMapProxy() const;
+
// ExecutionContext
void AddConsoleMessage(ConsoleMessage*) final;
void ExceptionThrown(ErrorEvent*) final;
CoreProbeSink* GetProbeSink() final;
DECLARE_VIRTUAL_TRACE();
+
+ private:
+ Member<WorkletModuleResponsesMapProxy> module_responses_map_proxy_;
};
DEFINE_TYPE_CASTS(MainThreadWorkletGlobalScope,

Powered by Google App Engine
This is Rietveld 408576698