blob: 9ee10aa8a245a27023a688c0bbf6f163ae2441d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
// 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 "content/utility/webthread_impl_for_utility_thread.h"
#include "base/thread_task_runner_handle.h"
namespace content {
WebThreadImplForUtilityThread::WebThreadImplForUtilityThread()
: task_runner_(base::ThreadTaskRunnerHandle::Get()),
thread_id_(base::PlatformThread::CurrentId()) {
}
WebThreadImplForUtilityThread::~WebThreadImplForUtilityThread() {
}
blink::WebScheduler* WebThreadImplForUtilityThread::scheduler() const {
NOTIMPLEMENTED();
return nullptr;
}
blink::PlatformThreadId WebThreadImplForUtilityThread::threadId() const {
return thread_id_;
}
base::SingleThreadTaskRunner* WebThreadImplForUtilityThread::GetTaskRunner()
const {
return task_runner_.get();
}
scheduler::SingleThreadIdleTaskRunner*
WebThreadImplForUtilityThread::GetIdleTaskRunner() const {
NOTIMPLEMENTED();
return nullptr;
}
} // namespace content
|