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" | |
6 #include "modules/fetch/Response.h" | 5 #include "modules/fetch/Response.h" |
7 | 6 |
8 #include "bindings/core/v8/ExceptionState.h" | 7 #include "bindings/core/v8/ExceptionState.h" |
9 #include "bindings/core/v8/ScriptState.h" | 8 #include "bindings/core/v8/ScriptState.h" |
10 #include "core/dom/Document.h" | 9 #include "core/dom/Document.h" |
11 #include "core/dom/ExceptionCode.h" | 10 #include "core/dom/ExceptionCode.h" |
12 #include "core/frame/Frame.h" | 11 #include "core/frame/Frame.h" |
13 #include "core/testing/DummyPageHolder.h" | 12 #include "core/testing/DummyPageHolder.h" |
14 #include "modules/fetch/BodyStreamBuffer.h" | 13 #include "modules/fetch/BodyStreamBuffer.h" |
15 #include "modules/fetch/DataConsumerHandleTestUtil.h" | 14 #include "modules/fetch/DataConsumerHandleTestUtil.h" |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 EXPECT_CALL(*client1, didFetchDataLoadFailed()); | 253 EXPECT_CALL(*client1, didFetchDataLoadFailed()); |
255 EXPECT_CALL(*client2, didFetchDataLoadFailed()); | 254 EXPECT_CALL(*client2, didFetchDataLoadFailed()); |
256 | 255 |
257 response->internalBodyBuffer()->startLoading(response->executionContext(), F
etchDataLoader::createLoaderAsString(), client1); | 256 response->internalBodyBuffer()->startLoading(response->executionContext(), F
etchDataLoader::createLoaderAsString(), client1); |
258 clonedResponse->internalBodyBuffer()->startLoading(response->executionContex
t(), FetchDataLoader::createLoaderAsString(), client2); | 257 clonedResponse->internalBodyBuffer()->startLoading(response->executionContex
t(), FetchDataLoader::createLoaderAsString(), client2); |
259 blink::testing::runPendingTasks(); | 258 blink::testing::runPendingTasks(); |
260 } | 259 } |
261 | 260 |
262 } // namespace | 261 } // namespace |
263 } // namespace blink | 262 } // namespace blink |
OLD | NEW |