summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/platform/scheduler/common/background_scheduler.cc
blob: 18d898e39f3c7aef01076443813c500d14846785 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/platform/scheduler/public/background_scheduler.h"

#include "base/location.h"
#include "base/task_scheduler/post_task.h"

namespace blink {

void BackgroundScheduler::PostOnBackgroundThread(const base::Location& location,
                                                 CrossThreadClosure closure) {
  base::PostTaskWithTraits(location,
                           {base::TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN},
                           ConvertToBaseCallback(std::move(closure)));
}

}  // namespace blink