• tzik's avatar
    Migrate base::TaskRunner from Closure to OnceClosure · 6e42784f
    tzik authored
    After this CL, TaskRunner::PostTask and its family can take OnceClosure
    in addition to Closure.
    
    Most of the changes are mechanical replacement of Closure with OnceClosure
    on TaskRunner family. Others are:
     - Limit CriticalClosure from Closure to OnceClosure as no caller call
       the resulting callback more than once
     - Add several PostTaskAndReplyWithResult overloads for old Callback
       version, for compatibility. (in base/task_scheduler/post_task.h)
     - Update SequencedWorkerPool implementation for OnceClosure.
     - Update task handling code in app_state.mm for OnceClosure, which is
       needed to bring OnceClosure into a ObjC block.
    
    BUG=704027
    CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel
    
    Review-Url: https://codereview.chromium.org/2637843002
    Cr-Commit-Position: refs/heads/master@{#462023}
    6e42784f
Name
Last commit
Last update
..
audio Loading commit data...
base Loading commit data...
blink Loading commit data...
capture Loading commit data...
cast Loading commit data...
cdm Loading commit data...
device_monitors Loading commit data...
ffmpeg Loading commit data...
filters Loading commit data...
formats Loading commit data...
gpu Loading commit data...
midi Loading commit data...
mojo Loading commit data...
muxers Loading commit data...
remoting Loading commit data...
renderers Loading commit data...
test Loading commit data...
tools Loading commit data...
video Loading commit data...
BUILD.gn Loading commit data...
DEPS Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
PRESUBMIT_test.py Loading commit data...
clearkeycdmadapter.ver Loading commit data...
media_options.gni Loading commit data...