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

Unified Diff: third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp

Issue 2780693003: [wasm] response-based compile APIs (Closed)
Patch Set: . Created 3 years, 9 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/fetch/GlobalFetch.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp b/third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp
index 59dd851cca9d43f87c88b40c2aa24dcc949cf9f5..66549167318d0185bae248417e797f8bc2ec9903 100644
--- a/third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp
+++ b/third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp
@@ -10,6 +10,7 @@
#include "core/workers/WorkerGlobalScope.h"
#include "modules/fetch/FetchManager.h"
#include "modules/fetch/Request.h"
+#include "modules/fetch/Response.h"
#include "platform/Supplementable.h"
#include "platform/heap/Handle.h"
@@ -96,6 +97,8 @@ ScriptPromise GlobalFetch::fetch(ScriptState* scriptState,
const RequestInfo& input,
const Dictionary& init,
ExceptionState& exceptionState) {
+ scriptState->isolate()->SetWasmCompileCallback(
Mircea Trofin 2017/03/28 02:05:57 This is the problem: we need to set this callback
+ WasmResponseOverloads::CompileOverload);
UseCounter::count(window.getExecutionContext(), UseCounter::Fetch);
if (!window.frame()) {
exceptionState.throwTypeError("The global scope is shutting down.");

Powered by Google App Engine
This is Rietveld 408576698