OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "modules/fetch/BodyStreamBuffer.h" | 5 #include "modules/fetch/BodyStreamBuffer.h" |
6 | 6 |
7 #include "bindings/core/v8/ScriptState.h" | 7 #include "bindings/core/v8/ScriptState.h" |
8 #include "bindings/core/v8/V8HiddenValue.h" | 8 #include "bindings/core/v8/V8HiddenValue.h" |
9 #include "bindings/core/v8/V8ThrowException.h" | 9 #include "bindings/core/v8/V8ThrowException.h" |
10 #include "core/dom/DOMArrayBuffer.h" | 10 #include "core/dom/DOMArrayBuffer.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 void didFetchDataLoadedString(const String& string) override { | 49 void didFetchDataLoadedString(const String& string) override { |
50 m_buffer->endLoading(); | 50 m_buffer->endLoading(); |
51 m_client->didFetchDataLoadedString(string); | 51 m_client->didFetchDataLoadedString(string); |
52 } | 52 } |
53 | 53 |
54 void didFetchDataLoadedStream() override { | 54 void didFetchDataLoadedStream() override { |
55 m_buffer->endLoading(); | 55 m_buffer->endLoading(); |
56 m_client->didFetchDataLoadedStream(); | 56 m_client->didFetchDataLoadedStream(); |
57 } | 57 } |
58 | 58 |
| 59 void didFetchDataLoadedWasmModule() override { |
| 60 m_buffer->endLoading(); |
| 61 m_client->didFetchDataLoadedWasmModule(); |
| 62 } |
| 63 |
59 void didFetchDataLoadFailed() override { | 64 void didFetchDataLoadFailed() override { |
60 m_buffer->endLoading(); | 65 m_buffer->endLoading(); |
61 m_client->didFetchDataLoadFailed(); | 66 m_client->didFetchDataLoadFailed(); |
62 } | 67 } |
63 | 68 |
64 DEFINE_INLINE_TRACE() { | 69 DEFINE_INLINE_TRACE() { |
65 visitor->trace(m_buffer); | 70 visitor->trace(m_buffer); |
66 visitor->trace(m_client); | 71 visitor->trace(m_client); |
67 ContextLifecycleObserver::trace(visitor); | 72 ContextLifecycleObserver::trace(visitor); |
68 FetchDataLoader::Client::trace(visitor); | 73 FetchDataLoader::Client::trace(visitor); |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 } | 391 } |
387 if (isErrored) | 392 if (isErrored) |
388 return BytesConsumer::createErrored(BytesConsumer::Error("error")); | 393 return BytesConsumer::createErrored(BytesConsumer::Error("error")); |
389 | 394 |
390 DCHECK(consumer); | 395 DCHECK(consumer); |
391 consumer->clearClient(); | 396 consumer->clearClient(); |
392 return consumer; | 397 return consumer; |
393 } | 398 } |
394 | 399 |
395 } // namespace blink | 400 } // namespace blink |
OLD | NEW |