blob: 04cebcb20c8c13d21aa48560993a401227a77800 [file] [log] [blame]
// 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 "platform/threading/BackgroundTaskRunner.h"
#include "base/location.h"
#include "base/threading/worker_pool.h"
#include "public/platform/WebTraceLocation.h"
namespace blink {
void BackgroundTaskRunner::postOnBackgroundThread(
const WebTraceLocation& location,
std::unique_ptr<CrossThreadClosure> closure,
TaskSize taskSize) {
base::WorkerPool::PostTask(location,
convertToBaseCallback(std::move(closure)),
taskSize == TaskSizeLongRunningTask);
}
} // namespace blink