| 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 "platform/network/ResourceResponse.h" | 5 #include "platform/loader/fetch/ResourceResponse.h" |
| 6 | 6 |
| 7 #include "platform/CrossThreadFunctional.h" | 7 #include "platform/CrossThreadFunctional.h" |
| 8 #include "platform/WebTaskRunner.h" | 8 #include "platform/WebTaskRunner.h" |
| 9 #include "public/platform/Platform.h" | 9 #include "public/platform/Platform.h" |
| 10 #include "public/platform/WebThread.h" | 10 #include "public/platform/WebThread.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 ResourceResponse response(createTestResponse()); | 73 ResourceResponse response(createTestResponse()); |
| 74 runHeaderRelatedTest(response); | 74 runHeaderRelatedTest(response); |
| 75 std::unique_ptr<WebThread> thread = | 75 std::unique_ptr<WebThread> thread = |
| 76 WTF::wrapUnique(Platform::current()->createThread("WorkerThread")); | 76 WTF::wrapUnique(Platform::current()->createThread("WorkerThread")); |
| 77 thread->getWebTaskRunner()->postTask(BLINK_FROM_HERE, | 77 thread->getWebTaskRunner()->postTask(BLINK_FROM_HERE, |
| 78 crossThreadBind(&runInThread)); | 78 crossThreadBind(&runInThread)); |
| 79 thread.reset(); | 79 thread.reset(); |
| 80 } | 80 } |
| 81 | 81 |
| 82 } // namespace blink | 82 } // namespace blink |
| OLD | NEW |