[Android] Implement 3-way sensor fallback for Device Orientation.
[chromium-blink-merge.git] / content / child / worker_thread_impl.cc
blobc499ccb85c4d83e92fac79f5286469876e395f9a
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"
10 namespace content {
12 // static
13 int WorkerThread::GetCurrentId() {
14 return WorkerTaskRunner::Instance()->CurrentWorkerId();
17 // static
18 void WorkerThread::PostTask(int id, const base::Closure& task) {
19 WorkerTaskRunner::Instance()->PostTask(id, task);
22 } // namespace content