| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/fetch/Resource.h" | 5 #include "platform/loader/fetch/Resource.h" |
| 6 | 6 |
| 7 #include "core/fetch/MemoryCache.h" | |
| 8 #include "core/fetch/RawResource.h" | |
| 9 #include "platform/SharedBuffer.h" | 7 #include "platform/SharedBuffer.h" |
| 8 #include "platform/loader/fetch/MemoryCache.h" |
| 9 #include "platform/loader/fetch/RawResource.h" |
| 10 #include "platform/network/ResourceRequest.h" | 10 #include "platform/network/ResourceRequest.h" |
| 11 #include "platform/network/ResourceResponse.h" | 11 #include "platform/network/ResourceResponse.h" |
| 12 #include "platform/testing/TestingPlatformSupport.h" | 12 #include "platform/testing/TestingPlatformSupport.h" |
| 13 #include "platform/testing/URLTestHelpers.h" | 13 #include "platform/testing/URLTestHelpers.h" |
| 14 #include "public/platform/Platform.h" | 14 #include "public/platform/Platform.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 #include "wtf/Vector.h" | 16 #include "wtf/Vector.h" |
| 17 | 17 |
| 18 namespace blink { | 18 namespace blink { |
| 19 | 19 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 // shouldn't trigger a securiy check. | 84 // shouldn't trigger a securiy check. |
| 85 url.setFragmentIdentifier("bar"); | 85 url.setFragmentIdentifier("bar"); |
| 86 resource->setRevalidatingRequest(ResourceRequest(url)); | 86 resource->setRevalidatingRequest(ResourceRequest(url)); |
| 87 ResourceResponse revalidatingResponse; | 87 ResourceResponse revalidatingResponse; |
| 88 revalidatingResponse.setURL(url); | 88 revalidatingResponse.setURL(url); |
| 89 revalidatingResponse.setHTTPStatusCode(304); | 89 revalidatingResponse.setHTTPStatusCode(304); |
| 90 resource->responseReceived(revalidatingResponse, nullptr); | 90 resource->responseReceived(revalidatingResponse, nullptr); |
| 91 } | 91 } |
| 92 | 92 |
| 93 } // namespace blink | 93 } // namespace blink |
| OLD | NEW |