| 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/scheduler/child/web_task_runner_impl.h" | 5 #include "platform/scheduler/child/web_task_runner_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "public/platform/scheduler/base/task_queue.h" | |
| 11 #include "platform/scheduler/base/time_domain.h" | 10 #include "platform/scheduler/base/time_domain.h" |
| 12 #include "public/platform/WebTraceLocation.h" | 11 #include "public/platform/WebTraceLocation.h" |
| 12 #include "public/platform/scheduler/base/task_queue.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 namespace scheduler { | 15 namespace scheduler { |
| 16 | 16 |
| 17 RefPtr<WebTaskRunnerImpl> WebTaskRunnerImpl::create( | 17 RefPtr<WebTaskRunnerImpl> WebTaskRunnerImpl::create( |
| 18 scoped_refptr<TaskQueue> task_queue) { | 18 scoped_refptr<TaskQueue> task_queue) { |
| 19 return adoptRef(new WebTaskRunnerImpl(std::move(task_queue))); | 19 return adoptRef(new WebTaskRunnerImpl(std::move(task_queue))); |
| 20 } | 20 } |
| 21 | 21 |
| 22 void WebTaskRunnerImpl::postDelayedTask(const WebTraceLocation& location, | 22 void WebTaskRunnerImpl::postDelayedTask(const WebTraceLocation& location, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 return base::TimeTicks::Now(); | 54 return base::TimeTicks::Now(); |
| 55 return time_domain->Now(); | 55 return time_domain->Now(); |
| 56 } | 56 } |
| 57 | 57 |
| 58 base::SingleThreadTaskRunner* WebTaskRunnerImpl::toSingleThreadTaskRunner() { | 58 base::SingleThreadTaskRunner* WebTaskRunnerImpl::toSingleThreadTaskRunner() { |
| 59 return task_queue_.get(); | 59 return task_queue_.get(); |
| 60 } | 60 } |
| 61 | 61 |
| 62 } // namespace scheduler | 62 } // namespace scheduler |
| 63 } // namespace blink | 63 } // namespace blink |
| OLD | NEW |