| 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 #ifndef THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_UTILITY_WEBTHREAD_IMPL_FOR_
UTILITY_THREAD_H_ | 5 #ifndef THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_UTILITY_WEBTHREAD_IMPL_FOR_
UTILITY_THREAD_H_ |
| 6 #define THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_UTILITY_WEBTHREAD_IMPL_FOR_
UTILITY_THREAD_H_ | 6 #define THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_UTILITY_WEBTHREAD_IMPL_FOR_
UTILITY_THREAD_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "public/platform/WebCommon.h" |
| 10 #include "public/platform/scheduler/child/webthread_base.h" | 11 #include "public/platform/scheduler/child/webthread_base.h" |
| 11 #include "public/platform/WebCommon.h" | |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 namespace scheduler { | 14 namespace scheduler { |
| 15 | 15 |
| 16 class BLINK_PLATFORM_EXPORT WebThreadImplForUtilityThread | 16 class BLINK_PLATFORM_EXPORT WebThreadImplForUtilityThread |
| 17 : public scheduler::WebThreadBase { | 17 : public scheduler::WebThreadBase { |
| 18 public: | 18 public: |
| 19 WebThreadImplForUtilityThread(); | 19 WebThreadImplForUtilityThread(); |
| 20 ~WebThreadImplForUtilityThread() override; | 20 ~WebThreadImplForUtilityThread() override; |
| 21 | 21 |
| 22 // WebThread implementation. | 22 // WebThread implementation. |
| 23 WebScheduler* scheduler() const override; | 23 WebScheduler* scheduler() const override; |
| 24 PlatformThreadId threadId() const override; | 24 PlatformThreadId threadId() const override; |
| 25 | 25 |
| 26 // WebThreadBase implementation. | 26 // WebThreadBase implementation. |
| 27 base::SingleThreadTaskRunner* GetTaskRunner() const override; | 27 base::SingleThreadTaskRunner* GetTaskRunner() const override; |
| 28 scheduler::SingleThreadIdleTaskRunner* GetIdleTaskRunner() const override; | 28 scheduler::SingleThreadIdleTaskRunner* GetIdleTaskRunner() const override; |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 31 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
| 32 PlatformThreadId thread_id_; | 32 PlatformThreadId thread_id_; |
| 33 | 33 |
| 34 DISALLOW_COPY_AND_ASSIGN(WebThreadImplForUtilityThread); | 34 DISALLOW_COPY_AND_ASSIGN(WebThreadImplForUtilityThread); |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 } // namespace scheduler | 37 } // namespace scheduler |
| 38 } // namespace blink | 38 } // namespace blink |
| 39 | 39 |
| 40 #endif // THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_UTILITY_WEBTHREAD_IMPL_F
OR_UTILITY_THREAD_H_ | 40 #endif // THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_UTILITY_WEBTHREAD_IMPL_F
OR_UTILITY_THREAD_H_ |
| OLD | NEW |