| 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 <memory> |
| 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" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #include "platform/loader/fetch/FetchUtils.h" | 33 #include "platform/loader/fetch/FetchUtils.h" |
| 34 #include "platform/loader/fetch/ResourceError.h" | 34 #include "platform/loader/fetch/ResourceError.h" |
| 35 #include "platform/loader/fetch/ResourceRequest.h" | 35 #include "platform/loader/fetch/ResourceRequest.h" |
| 36 #include "platform/loader/fetch/ResourceResponse.h" | 36 #include "platform/loader/fetch/ResourceResponse.h" |
| 37 #include "platform/network/NetworkUtils.h" | 37 #include "platform/network/NetworkUtils.h" |
| 38 #include "platform/weborigin/KURL.h" | 38 #include "platform/weborigin/KURL.h" |
| 39 #include "platform/weborigin/SchemeRegistry.h" | 39 #include "platform/weborigin/SchemeRegistry.h" |
| 40 #include "platform/weborigin/SecurityOrigin.h" | 40 #include "platform/weborigin/SecurityOrigin.h" |
| 41 #include "platform/weborigin/SecurityPolicy.h" | 41 #include "platform/weborigin/SecurityPolicy.h" |
| 42 #include "platform/weborigin/Suborigin.h" | 42 #include "platform/weborigin/Suborigin.h" |
| 43 #include "platform/wtf/HashSet.h" |
| 44 #include "platform/wtf/Vector.h" |
| 45 #include "platform/wtf/text/WTFString.h" |
| 43 #include "public/platform/WebURLRequest.h" | 46 #include "public/platform/WebURLRequest.h" |
| 44 #include "wtf/HashSet.h" | |
| 45 #include "wtf/Vector.h" | |
| 46 #include "wtf/text/WTFString.h" | |
| 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 (!underlying_) { | 56 if (!underlying_) { |
| (...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 934 loaders_.erase(loader); | 934 loaders_.erase(loader); |
| 935 loader->Dispose(); | 935 loader->Dispose(); |
| 936 } | 936 } |
| 937 | 937 |
| 938 DEFINE_TRACE(FetchManager) { | 938 DEFINE_TRACE(FetchManager) { |
| 939 visitor->Trace(loaders_); | 939 visitor->Trace(loaders_); |
| 940 ContextLifecycleObserver::Trace(visitor); | 940 ContextLifecycleObserver::Trace(visitor); |
| 941 } | 941 } |
| 942 | 942 |
| 943 } // namespace blink | 943 } // namespace blink |
| OLD | NEW |