1. 05 Apr, 2017 1 commit
    • 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.
      Review-Url: https://codereview.chromium.org/2637843002
      Cr-Commit-Position: refs/heads/master@{#462023}
  2. 30 Nov, 2016 1 commit
    • fdoray's avatar
      Move PostTaskAndReplyWithResult() adapters to a separate header. · e94a9457
      fdoray authored
      This will allow base::PostTaskAndReplyWithResult() adapters to be
      re-used from base/task_scheduler/post_task.h without indirectly
      including the declaration of base::PostTaskAndReplyWithResult() in
      every file that includes base/task_scheduler/post_task.h.
      Note: task_runner_util.h will be renamed to
      post_task_and_reply_with_result.h in a separate CL.
      Review-Url: https://codereview.chromium.org/2535843002
      Cr-Commit-Position: refs/heads/master@{#435296}