Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: content/utility/webthread_impl_for_utility_thread.cc

Issue 1133563007: Adding WebThread and new BlinkPlatformImpl for utility thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed overrides. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #include "content/utility/webthread_impl_for_utility_thread.h"
6
7 namespace content {
8
9 WebThreadImplForUtilityThread::WebThreadImplForUtilityThread()
10 : task_runner_(base::MessageLoopProxy::current()),
11 thread_id_(base::PlatformThread::CurrentId()) {
12 }
13
14 WebThreadImplForUtilityThread::~WebThreadImplForUtilityThread() {
15 }
16
17 blink::WebScheduler* WebThreadImplForUtilityThread::scheduler() const {
18 NOTIMPLEMENTED();
19 return nullptr;
20 }
21
22 blink::PlatformThreadId WebThreadImplForUtilityThread::threadId() const {
23 return thread_id_;
24 }
25
26 base::SingleThreadTaskRunner* WebThreadImplForUtilityThread::TaskRunner()
27 const {
28 return task_runner_.get();
29 }
30
31 scheduler::SingleThreadIdleTaskRunner*
32 WebThreadImplForUtilityThread::IdleTaskRunner() const {
33 NOTIMPLEMENTED();
34 return nullptr;
35 }
36
37 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698