OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2013, Intel Corporation | 3 * Copyright (C) 2013, Intel Corporation |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 13 matching lines...) Expand all Loading... |
24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
30 */ | 30 */ |
31 | 31 |
32 #include "core/loader/DocumentThreadableLoader.h" | 32 #include "core/loader/DocumentThreadableLoader.h" |
33 | 33 |
| 34 #include <memory> |
34 #include "core/dom/Document.h" | 35 #include "core/dom/Document.h" |
35 #include "core/dom/TaskRunnerHelper.h" | 36 #include "core/dom/TaskRunnerHelper.h" |
36 #include "core/frame/FrameConsole.h" | 37 #include "core/frame/FrameConsole.h" |
37 #include "core/frame/LocalFrame.h" | 38 #include "core/frame/LocalFrame.h" |
38 #include "core/inspector/InspectorInstrumentation.h" | 39 #include "core/inspector/InspectorInstrumentation.h" |
39 #include "core/inspector/InspectorTraceEvents.h" | 40 #include "core/inspector/InspectorTraceEvents.h" |
40 #include "core/loader/CrossOriginPreflightResultCache.h" | 41 #include "core/loader/CrossOriginPreflightResultCache.h" |
41 #include "core/loader/DocumentThreadableLoaderClient.h" | 42 #include "core/loader/DocumentThreadableLoaderClient.h" |
42 #include "core/loader/FrameLoader.h" | 43 #include "core/loader/FrameLoader.h" |
43 #include "core/loader/FrameLoaderClient.h" | 44 #include "core/loader/FrameLoaderClient.h" |
44 #include "core/loader/ThreadableLoaderClient.h" | 45 #include "core/loader/ThreadableLoaderClient.h" |
45 #include "core/page/ChromeClient.h" | 46 #include "core/page/ChromeClient.h" |
46 #include "core/page/Page.h" | 47 #include "core/page/Page.h" |
47 #include "platform/SharedBuffer.h" | 48 #include "platform/SharedBuffer.h" |
48 #include "platform/loader/fetch/CrossOriginAccessControl.h" | 49 #include "platform/loader/fetch/CrossOriginAccessControl.h" |
49 #include "platform/loader/fetch/FetchRequest.h" | 50 #include "platform/loader/fetch/FetchRequest.h" |
50 #include "platform/loader/fetch/FetchUtils.h" | 51 #include "platform/loader/fetch/FetchUtils.h" |
51 #include "platform/loader/fetch/Resource.h" | 52 #include "platform/loader/fetch/Resource.h" |
52 #include "platform/loader/fetch/ResourceFetcher.h" | 53 #include "platform/loader/fetch/ResourceFetcher.h" |
53 #include "platform/network/ResourceRequest.h" | 54 #include "platform/network/ResourceRequest.h" |
54 #include "platform/weborigin/SchemeRegistry.h" | 55 #include "platform/weborigin/SchemeRegistry.h" |
55 #include "platform/weborigin/SecurityOrigin.h" | 56 #include "platform/weborigin/SecurityOrigin.h" |
56 #include "platform/weborigin/SecurityPolicy.h" | 57 #include "platform/weborigin/SecurityPolicy.h" |
57 #include "public/platform/Platform.h" | 58 #include "public/platform/Platform.h" |
58 #include "public/platform/WebURLRequest.h" | 59 #include "public/platform/WebURLRequest.h" |
59 #include "wtf/Assertions.h" | 60 #include "wtf/Assertions.h" |
60 #include "wtf/PtrUtil.h" | 61 #include "wtf/PtrUtil.h" |
61 #include "wtf/WeakPtr.h" | 62 #include "wtf/WeakPtr.h" |
62 #include <memory> | |
63 | 63 |
64 namespace blink { | 64 namespace blink { |
65 | 65 |
66 namespace { | 66 namespace { |
67 | 67 |
68 class EmptyDataHandle final : public WebDataConsumerHandle { | 68 class EmptyDataHandle final : public WebDataConsumerHandle { |
69 private: | 69 private: |
70 class EmptyDataReader final : public WebDataConsumerHandle::Reader { | 70 class EmptyDataReader final : public WebDataConsumerHandle::Reader { |
71 public: | 71 public: |
72 explicit EmptyDataReader(WebDataConsumerHandle::Client* client) | 72 explicit EmptyDataReader(WebDataConsumerHandle::Client* client) |
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1149 } | 1149 } |
1150 | 1150 |
1151 DEFINE_TRACE(DocumentThreadableLoader) { | 1151 DEFINE_TRACE(DocumentThreadableLoader) { |
1152 visitor->trace(m_resource); | 1152 visitor->trace(m_resource); |
1153 visitor->trace(m_document); | 1153 visitor->trace(m_document); |
1154 ThreadableLoader::trace(visitor); | 1154 ThreadableLoader::trace(visitor); |
1155 RawResourceClient::trace(visitor); | 1155 RawResourceClient::trace(visitor); |
1156 } | 1156 } |
1157 | 1157 |
1158 } // namespace blink | 1158 } // namespace blink |
OLD | NEW |