OLD | NEW |
---|---|
(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 #ifndef CONTENT_UTILITY_WEBTHREAD_IMPL_FOR_UTILITY_THREAD_H_ | |
6 #define CONTENT_UTILITY_WEBTHREAD_IMPL_FOR_UTILITY_THREAD_H_ | |
7 | |
8 #include "base/containers/scoped_ptr_hash_map.h" | |
9 #include "components/scheduler/child/webthread_base.h" | |
10 | |
11 namespace content { | |
12 | |
13 class WebThreadImplForUtilityThread : public scheduler::WebThreadBase { | |
14 public: | |
15 explicit WebThreadImplForUtilityThread(); | |
Sami
2015/05/11 17:08:02
No need for explicit since there are no parameters
ssid
2015/05/11 17:21:00
Done.
| |
16 virtual ~WebThreadImplForUtilityThread(); | |
Sami
2015/05/11 17:08:02
~WebThreadImplForUtilityThread() override;
ssid
2015/05/11 17:21:00
Done.
| |
17 | |
18 // blink::WebThread implementation. | |
19 blink::WebScheduler* scheduler() const override; | |
20 blink::PlatformThreadId threadId() const override; | |
21 | |
22 // WebThreadBase implementation. | |
23 base::SingleThreadTaskRunner* TaskRunner() const override; | |
24 scheduler::SingleThreadIdleTaskRunner* IdleTaskRunner() const override; | |
25 | |
26 private: | |
27 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | |
28 blink::PlatformThreadId thread_id_; | |
29 }; | |
30 | |
31 } // namespace content | |
32 | |
33 #endif // CONTENT_UTILITY_WEBTHREAD_IMPL_FOR_UTILITY_THREAD_H_ | |
OLD | NEW |