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/FetchManager.h" | 5 #include "modules/fetch/FetchManager.h" |
6 | 6 |
| 7 #include <memory> |
7 #include "bindings/core/v8/ExceptionState.h" | 8 #include "bindings/core/v8/ExceptionState.h" |
8 #include "bindings/core/v8/ScriptPromiseResolver.h" | 9 #include "bindings/core/v8/ScriptPromiseResolver.h" |
9 #include "bindings/core/v8/ScriptState.h" | 10 #include "bindings/core/v8/ScriptState.h" |
10 #include "bindings/core/v8/V8ThrowException.h" | 11 #include "bindings/core/v8/V8ThrowException.h" |
11 #include "core/dom/DOMArrayBuffer.h" | 12 #include "core/dom/DOMArrayBuffer.h" |
12 #include "core/dom/Document.h" | 13 #include "core/dom/Document.h" |
13 #include "core/fileapi/Blob.h" | 14 #include "core/fileapi/Blob.h" |
14 #include "core/frame/Frame.h" | 15 #include "core/frame/Frame.h" |
15 #include "core/frame/SubresourceIntegrity.h" | 16 #include "core/frame/SubresourceIntegrity.h" |
16 #include "core/frame/csp/ContentSecurityPolicy.h" | 17 #include "core/frame/csp/ContentSecurityPolicy.h" |
(...skipping 19 matching lines...) Expand all Loading... |
36 #include "platform/network/ResourceResponse.h" | 37 #include "platform/network/ResourceResponse.h" |
37 #include "platform/weborigin/KURL.h" | 38 #include "platform/weborigin/KURL.h" |
38 #include "platform/weborigin/SchemeRegistry.h" | 39 #include "platform/weborigin/SchemeRegistry.h" |
39 #include "platform/weborigin/SecurityOrigin.h" | 40 #include "platform/weborigin/SecurityOrigin.h" |
40 #include "platform/weborigin/SecurityPolicy.h" | 41 #include "platform/weborigin/SecurityPolicy.h" |
41 #include "platform/weborigin/Suborigin.h" | 42 #include "platform/weborigin/Suborigin.h" |
42 #include "public/platform/WebURLRequest.h" | 43 #include "public/platform/WebURLRequest.h" |
43 #include "wtf/HashSet.h" | 44 #include "wtf/HashSet.h" |
44 #include "wtf/Vector.h" | 45 #include "wtf/Vector.h" |
45 #include "wtf/text/WTFString.h" | 46 #include "wtf/text/WTFString.h" |
46 #include <memory> | |
47 | 47 |
48 namespace blink { | 48 namespace blink { |
49 | 49 |
50 namespace { | 50 namespace { |
51 | 51 |
52 class SRIBytesConsumer final : public BytesConsumer { | 52 class SRIBytesConsumer final : public BytesConsumer { |
53 public: | 53 public: |
54 // BytesConsumer implementation | 54 // BytesConsumer implementation |
55 Result beginRead(const char** buffer, size_t* available) override { | 55 Result beginRead(const char** buffer, size_t* available) override { |
56 if (!m_underlying) { | 56 if (!m_underlying) { |
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
933 m_loaders.erase(loader); | 933 m_loaders.erase(loader); |
934 loader->dispose(); | 934 loader->dispose(); |
935 } | 935 } |
936 | 936 |
937 DEFINE_TRACE(FetchManager) { | 937 DEFINE_TRACE(FetchManager) { |
938 visitor->trace(m_loaders); | 938 visitor->trace(m_loaders); |
939 ContextLifecycleObserver::trace(visitor); | 939 ContextLifecycleObserver::trace(visitor); |
940 } | 940 } |
941 | 941 |
942 } // namespace blink | 942 } // namespace blink |
OLD | NEW |