ServiceWorkerEventQueue: Prefer separate functions to one PushTask(Task) function
Follow-up of the review comment: https://crrev.com/c/1906452/6/third_party/blink/renderer/modules/service_worker/service_worker_timeout_timer.h#109 Prefer separate functions, EnqueueNormal(...) and EnqueuePending(...), to just one PushTask(Task) function, so that callers don't have to create a Task on caller sides. This CL also renames ServiceWorkerEventQueue::Task to ServiceWorkerEventQueue::Event, and does necessary changes accordingly. We no longer use a word of *task* in ServiceWorkerEventQueue because using both tasks and events in ServiceWorkerEventQueue is slightly confusing. It would be better to use Event consistently because its meaning is clear in this context. Bug: 965802 Change-Id: I18b133429e4636eef69cfc4e79c33b13be978ef7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1948368 Commit-Queue: Hayato Ito <hayato@chromium.org> Reviewed-by:Makoto Shimazu <shimazu@chromium.org> Reviewed-by:
Matt Falkenhagen <falken@chromium.org> Cr-Commit-Position: refs/heads/master@{#721885}
Showing
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment