| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "bindings/modules/v8/wasm/WasmResponseExtensions.h" | 5 #include "bindings/modules/v8/wasm/WasmResponseExtensions.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/ExceptionState.h" | 7 #include "bindings/core/v8/ExceptionState.h" |
| 8 #include "bindings/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
| 9 #include "bindings/core/v8/ScriptPromiseResolver.h" | 9 #include "bindings/core/v8/ScriptPromiseResolver.h" |
| 10 #include "bindings/core/v8/ScriptState.h" | 10 #include "bindings/core/v8/ScriptState.h" |
| 11 #include "bindings/modules/v8/V8Response.h" | 11 #include "bindings/modules/v8/V8Response.h" |
| 12 #include "core/dom/ExecutionContext.h" | 12 #include "core/dom/ExecutionContext.h" |
| 13 #include "modules/fetch/BodyStreamBuffer.h" | 13 #include "modules/fetch/BodyStreamBuffer.h" |
| 14 #include "modules/fetch/FetchDataLoader.h" | 14 #include "modules/fetch/FetchDataLoader.h" |
| 15 #include "platform/heap/Handle.h" | 15 #include "platform/heap/Handle.h" |
| 16 #include "wtf/RefPtr.h" | 16 #include "platform/wtf/RefPtr.h" |
| 17 | 17 |
| 18 namespace blink { | 18 namespace blink { |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 class FetchDataLoaderAsWasmModule final : public FetchDataLoader, | 22 class FetchDataLoaderAsWasmModule final : public FetchDataLoader, |
| 23 public BytesConsumer::Client { | 23 public BytesConsumer::Client { |
| 24 USING_GARBAGE_COLLECTED_MIXIN(FetchDataLoaderAsWasmModule); | 24 USING_GARBAGE_COLLECTED_MIXIN(FetchDataLoaderAsWasmModule); |
| 25 | 25 |
| 26 public: | 26 public: |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 return true; | 221 return true; |
| 222 } | 222 } |
| 223 | 223 |
| 224 } // namespace | 224 } // namespace |
| 225 | 225 |
| 226 void WasmResponseExtensions::Initialize(v8::Isolate* isolate) { | 226 void WasmResponseExtensions::Initialize(v8::Isolate* isolate) { |
| 227 isolate->SetWasmCompileCallback(WasmCompileOverload); | 227 isolate->SetWasmCompileCallback(WasmCompileOverload); |
| 228 } | 228 } |
| 229 | 229 |
| 230 } // namespace blink | 230 } // namespace blink |
| OLD | NEW |