| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "core/loader/ThreadableLoader.h" | 5 #include "core/loader/ThreadableLoader.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include "core/loader/DocumentThreadableLoader.h" | 8 #include "core/loader/DocumentThreadableLoader.h" |
| 9 #include "core/loader/ThreadableLoaderClient.h" | 9 #include "core/loader/ThreadableLoaderClient.h" |
| 10 #include "core/loader/ThreadableLoadingContext.h" | 10 #include "core/loader/ThreadableLoadingContext.h" |
| 11 #include "core/loader/WorkerThreadableLoader.h" | 11 #include "core/loader/WorkerThreadableLoader.h" |
| 12 #include "core/testing/DummyPageHolder.h" | 12 #include "core/testing/DummyPageHolder.h" |
| 13 #include "core/workers/WorkerLoaderProxy.h" | 13 #include "core/workers/WorkerLoaderProxy.h" |
| 14 #include "core/workers/WorkerThreadTestHelper.h" | 14 #include "core/workers/WorkerThreadTestHelper.h" |
| 15 #include "platform/WaitableEvent.h" | 15 #include "platform/WaitableEvent.h" |
| 16 #include "platform/geometry/IntSize.h" | 16 #include "platform/geometry/IntSize.h" |
| 17 #include "platform/loader/fetch/MemoryCache.h" | 17 #include "platform/loader/fetch/MemoryCache.h" |
| 18 #include "platform/loader/fetch/ResourceError.h" |
| 18 #include "platform/loader/fetch/ResourceLoaderOptions.h" | 19 #include "platform/loader/fetch/ResourceLoaderOptions.h" |
| 19 #include "platform/network/ResourceError.h" | 20 #include "platform/loader/fetch/ResourceRequest.h" |
| 20 #include "platform/network/ResourceRequest.h" | 21 #include "platform/loader/fetch/ResourceResponse.h" |
| 21 #include "platform/network/ResourceResponse.h" | 22 #include "platform/loader/fetch/ResourceTimingInfo.h" |
| 22 #include "platform/network/ResourceTimingInfo.h" | |
| 23 #include "platform/testing/URLTestHelpers.h" | 23 #include "platform/testing/URLTestHelpers.h" |
| 24 #include "platform/testing/UnitTestHelpers.h" | 24 #include "platform/testing/UnitTestHelpers.h" |
| 25 #include "platform/weborigin/KURL.h" | 25 #include "platform/weborigin/KURL.h" |
| 26 #include "platform/weborigin/SecurityOrigin.h" | 26 #include "platform/weborigin/SecurityOrigin.h" |
| 27 #include "public/platform/Platform.h" | 27 #include "public/platform/Platform.h" |
| 28 #include "public/platform/WebURLLoadTiming.h" | 28 #include "public/platform/WebURLLoadTiming.h" |
| 29 #include "public/platform/WebURLLoaderMockFactory.h" | 29 #include "public/platform/WebURLLoaderMockFactory.h" |
| 30 #include "public/platform/WebURLResponse.h" | 30 #include "public/platform/WebURLResponse.h" |
| 31 #include "testing/gmock/include/gmock/gmock.h" | 31 #include "testing/gmock/include/gmock/gmock.h" |
| 32 #include "testing/gtest/include/gtest/gtest.h" | 32 #include "testing/gtest/include/gtest/gtest.h" |
| (...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 890 // test is not saying that didFailAccessControlCheck should be dispatched | 890 // test is not saying that didFailAccessControlCheck should be dispatched |
| 891 // synchronously, but is saying that even when a response is served | 891 // synchronously, but is saying that even when a response is served |
| 892 // synchronously it should not lead to a crash. | 892 // synchronously it should not lead to a crash. |
| 893 startLoader(KURL(KURL(), "about:blank")); | 893 startLoader(KURL(KURL(), "about:blank")); |
| 894 callCheckpoint(2); | 894 callCheckpoint(2); |
| 895 } | 895 } |
| 896 | 896 |
| 897 } // namespace | 897 } // namespace |
| 898 | 898 |
| 899 } // namespace blink | 899 } // namespace blink |
| OLD | NEW |