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 "config.h" | 5 #include "config.h" |
6 #include "modules/fetch/Body.h" | 6 #include "modules/fetch/Body.h" |
7 | 7 |
8 #include "bindings/core/v8/ExceptionState.h" | 8 #include "bindings/core/v8/ExceptionState.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/core/v8/V8ArrayBuffer.h" | 11 #include "bindings/core/v8/V8ArrayBuffer.h" |
12 #include "bindings/core/v8/V8ThrowException.h" | 12 #include "bindings/core/v8/V8ThrowException.h" |
13 #include "core/dom/DOMArrayBuffer.h" | 13 #include "core/dom/DOMArrayBuffer.h" |
14 #include "core/fileapi/Blob.h" | 14 #include "core/fileapi/Blob.h" |
15 #include "core/fileapi/FileReaderLoader.h" | 15 #include "core/fileapi/FileReaderLoader.h" |
16 #include "core/fileapi/FileReaderLoaderClient.h" | 16 #include "core/fileapi/FileReaderLoaderClient.h" |
17 #include "core/frame/UseCounter.h" | 17 #include "core/frame/UseCounter.h" |
18 #include "core/streams/ExclusiveStreamReader.h" | 18 #include "core/streams/ReadableStreamReader.h" |
19 #include "core/streams/UnderlyingSource.h" | 19 #include "core/streams/UnderlyingSource.h" |
20 #include "modules/fetch/BodyStreamBuffer.h" | 20 #include "modules/fetch/BodyStreamBuffer.h" |
21 | 21 |
22 namespace blink { | 22 namespace blink { |
23 | 23 |
24 class Body::BlobHandleReceiver final : public BodyStreamBuffer::BlobHandleCreato
rClient { | 24 class Body::BlobHandleReceiver final : public BodyStreamBuffer::BlobHandleCreato
rClient { |
25 public: | 25 public: |
26 explicit BlobHandleReceiver(Body* body) | 26 explicit BlobHandleReceiver(Body* body) |
27 : m_body(body) | 27 : m_body(body) |
28 { | 28 { |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 | 487 |
488 void Body::didBlobHandleReceiveError(PassRefPtrWillBeRawPtr<DOMException> except
ion) | 488 void Body::didBlobHandleReceiveError(PassRefPtrWillBeRawPtr<DOMException> except
ion) |
489 { | 489 { |
490 if (!m_resolver) | 490 if (!m_resolver) |
491 return; | 491 return; |
492 m_resolver->reject(exception); | 492 m_resolver->reject(exception); |
493 m_resolver.clear(); | 493 m_resolver.clear(); |
494 } | 494 } |
495 | 495 |
496 } // namespace blink | 496 } // namespace blink |
OLD | NEW |