| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "platform/threading/BackgroundTaskRunner.h" | 5 #include "platform/threading/BackgroundTaskRunner.h" |
| 6 | 6 |
| 7 #include "base/location.h" | 7 #include "base/location.h" |
| 8 #include "base/threading/worker_pool.h" | 8 #include "base/threading/worker_pool.h" |
| 9 #include "public/platform/WebTraceLocation.h" | 9 #include "public/platform/WebTraceLocation.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 void BackgroundTaskRunner::postOnBackgroundThread(const WebTraceLocation& locati
on, std::unique_ptr<CrossThreadClosure> closure, TaskSize taskSize) | 13 void BackgroundTaskRunner::postOnBackgroundThread(const WebTraceLocation& locati
on, std::unique_ptr<CrossThreadClosure> closure, TaskSize taskSize) |
| 14 { | 14 { |
| 15 base::WorkerPool::PostTask(location, convertToBaseCallback(std::move(closure
)), taskSize == TaskSizeLongRunningTask); | 15 tracked_objects::Location baseLocation(location.functionName(), location.fil
eName(), 0, nullptr); |
| 16 base::WorkerPool::PostTask(baseLocation, convertToBaseCallback(std::move(clo
sure)), taskSize == TaskSizeLongRunningTask); |
| 16 } | 17 } |
| 17 | 18 |
| 18 } // namespace blink | 19 } // namespace blink |
| OLD | NEW |