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
3 // found in the LICENSE file.
5 #include "content/public/child/worker_thread.h"
7 #include "content/child/worker_task_runner.h"
8 #include "content/common/content_export.h"
13 int WorkerThread::GetCurrentId() {
14 return WorkerTaskRunner::Instance()->CurrentWorkerId();
18 void WorkerThread::PostTask(int id
, const base::Closure
& task
) {
19 WorkerTaskRunner::Instance()->PostTask(id
, task
);
22 } // namespace content