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

Side by Side Diff: third_party/WebKit/Source/core/loader/EmptyClients.cpp

Issue 2780233002: Revert of [scheduler] Split suspendable tq from unthrottled tq. (Closed)
Patch Set: Created 3 years, 8 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 /* 1 /*
2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org> 2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org>
3 * Copyright (C) 2008, 2009, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2008, 2009, 2012 Apple Inc. All rights reserved.
4 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void disconnectClient() override {} 69 void disconnectClient() override {}
70 }; 70 };
71 71
72 class EmptyFrameScheduler : public WebFrameScheduler { 72 class EmptyFrameScheduler : public WebFrameScheduler {
73 public: 73 public:
74 EmptyFrameScheduler() { DCHECK(isMainThread()); } 74 EmptyFrameScheduler() { DCHECK(isMainThread()); }
75 void setFrameVisible(bool) override {} 75 void setFrameVisible(bool) override {}
76 RefPtr<WebTaskRunner> loadingTaskRunner() override; 76 RefPtr<WebTaskRunner> loadingTaskRunner() override;
77 RefPtr<WebTaskRunner> timerTaskRunner() override; 77 RefPtr<WebTaskRunner> timerTaskRunner() override;
78 RefPtr<WebTaskRunner> unthrottledTaskRunner() override; 78 RefPtr<WebTaskRunner> unthrottledTaskRunner() override;
79 RefPtr<WebTaskRunner> suspendableTaskRunner() override;
80 }; 79 };
81 80
82 RefPtr<WebTaskRunner> EmptyFrameScheduler::loadingTaskRunner() { 81 RefPtr<WebTaskRunner> EmptyFrameScheduler::loadingTaskRunner() {
83 return Platform::current()->mainThread()->getWebTaskRunner(); 82 return Platform::current()->mainThread()->getWebTaskRunner();
84 } 83 }
85 84
86 RefPtr<WebTaskRunner> EmptyFrameScheduler::timerTaskRunner() { 85 RefPtr<WebTaskRunner> EmptyFrameScheduler::timerTaskRunner() {
87 return Platform::current()->mainThread()->getWebTaskRunner(); 86 return Platform::current()->mainThread()->getWebTaskRunner();
88 } 87 }
89 88
90 RefPtr<WebTaskRunner> EmptyFrameScheduler::unthrottledTaskRunner() { 89 RefPtr<WebTaskRunner> EmptyFrameScheduler::unthrottledTaskRunner() {
91 return Platform::current()->mainThread()->getWebTaskRunner(); 90 return Platform::current()->mainThread()->getWebTaskRunner();
92 } 91 }
93 92
94 RefPtr<WebTaskRunner> EmptyFrameScheduler::suspendableTaskRunner() {
95 return Platform::current()->mainThread()->getWebTaskRunner();
96 }
97
98 PopupMenu* EmptyChromeClient::openPopupMenu(LocalFrame&, HTMLSelectElement&) { 93 PopupMenu* EmptyChromeClient::openPopupMenu(LocalFrame&, HTMLSelectElement&) {
99 return new EmptyPopupMenu(); 94 return new EmptyPopupMenu();
100 } 95 }
101 96
102 ColorChooser* EmptyChromeClient::openColorChooser(LocalFrame*, 97 ColorChooser* EmptyChromeClient::openColorChooser(LocalFrame*,
103 ColorChooserClient*, 98 ColorChooserClient*,
104 const Color&) { 99 const Color&) {
105 return nullptr; 100 return nullptr;
106 } 101 }
107 102
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 192
198 std::unique_ptr<WebApplicationCacheHost> 193 std::unique_ptr<WebApplicationCacheHost>
199 EmptyLocalFrameClient::createApplicationCacheHost( 194 EmptyLocalFrameClient::createApplicationCacheHost(
200 WebApplicationCacheHostClient*) { 195 WebApplicationCacheHostClient*) {
201 return nullptr; 196 return nullptr;
202 } 197 }
203 198
204 EmptyRemoteFrameClient::EmptyRemoteFrameClient() = default; 199 EmptyRemoteFrameClient::EmptyRemoteFrameClient() = default;
205 200
206 } // namespace blink 201 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp ('k') | third_party/WebKit/Source/platform/WebFrameScheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698