|
Use WTF::TimeDelta to specify delays on WebTaskRunner
WebTaskRunner had 3 variants of PostTask to post a delayed task. And among
that, one takes a double for the delay parameter, and others takes a long long.
While most of other parts of Blink uses double for a time delta in milliseconds
or seconds. That is sometimes confusing.
This CL replaces the type of delay parameter of WebTaskRunner with WTF::TimeDelta,
which is an alias of base::TimeDelta, and updates all callers.
Plus, this removes an overload of PostTask that has only one caller in the
production.
Review-Url: https://codereview.chromium.org/2876513002
Cr-Commit-Position: refs/heads/master@{#470931}
Committed: https://chromium.googlesource.com/chromium/src/+/3c84cbfc6e50987a39ee77140bdbb124970e6c58
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+133 lines, -128 lines) |
Patch |
|
M |
third_party/WebKit/Source/core/dom/ScriptedIdleTaskController.cpp
|
View
|
1
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.cpp
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/loader/NavigationScheduler.cpp
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/workers/WorkerThread.cpp
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/Timer.cpp
|
View
|
1
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/WebTaskRunner.h
|
View
|
1
|
4 chunks |
+4 lines, -9 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/WebTaskRunner.cpp
|
View
|
1
|
3 chunks |
+6 lines, -8 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/WebTaskRunnerTest.cpp
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/WebThreadSupportingGC.h
|
View
|
1
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/audio/PushPullFIFOMultithreadTest.cpp
|
View
|
1
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.mm
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scheduler/child/web_task_runner_impl.h
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scheduler/child/web_task_runner_impl.cc
|
View
|
|
1 chunk |
+0 lines, -9 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scheduler/child/webthread_impl_for_worker_scheduler_unittest.cc
|
View
|
1
|
2 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl_unittest.cc
|
View
|
1
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scheduler/renderer/web_frame_scheduler_impl_unittest.cc
|
View
|
1
|
8 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl_unittest.cc
|
View
|
1
|
23 chunks |
+80 lines, -53 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scheduler/test/fake_web_task_runner.h
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scheduler/test/fake_web_task_runner.cc
|
View
|
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/testing/UnitTestHelpers.cpp
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/web/tests/VirtualTimeTest.cpp
|
View
|
1
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
Total messages: 29 (18 generated)
|