Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(473)

Side by Side Diff: third_party/WebKit/Source/modules/fetch/DataConsumerHandleTestUtil.cpp

Issue 2843503002: scheduler: Move WebFrameScheduler and WebScheduler into Blink (Closed)
Patch Set: Build fix Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "modules/fetch/DataConsumerHandleTestUtil.h" 5 #include "modules/fetch/DataConsumerHandleTestUtil.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include "bindings/core/v8/DOMWrapperWorld.h" 8 #include "bindings/core/v8/DOMWrapperWorld.h"
9 #include "platform/scheduler/child/web_scheduler.h"
9 #include "platform/wtf/PtrUtil.h" 10 #include "platform/wtf/PtrUtil.h"
10 #include "public/platform/WebScheduler.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 using Result = WebDataConsumerHandle::Result; 14 using Result = WebDataConsumerHandle::Result;
15 15
16 namespace { 16 namespace {
17 17
18 class WaitingHandle final : public WebDataConsumerHandle { 18 class WaitingHandle final : public WebDataConsumerHandle {
19 private: 19 private:
20 class ReaderImpl final : public WebDataConsumerHandle::Reader { 20 class ReaderImpl final : public WebDataConsumerHandle::Reader {
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 std::move(on_finished_reading_)); 337 std::move(on_finished_reading_));
338 (*on_finished_reading)(std::move(result)); 338 (*on_finished_reading)(std::move(result));
339 } 339 }
340 340
341 std::unique_ptr<WebDataConsumerHandle> 341 std::unique_ptr<WebDataConsumerHandle>
342 DataConsumerHandleTestUtil::CreateWaitingDataConsumerHandle() { 342 DataConsumerHandleTestUtil::CreateWaitingDataConsumerHandle() {
343 return WTF::WrapUnique(new WaitingHandle); 343 return WTF::WrapUnique(new WaitingHandle);
344 } 344 }
345 345
346 } // namespace blink 346 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698