| 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 CONTENT_UTILITY_UTILITY_BLINK_PLATFORM_IMPL_H_ | 5 #ifndef CONTENT_UTILITY_UTILITY_BLINK_PLATFORM_IMPL_H_ |
| 6 #define CONTENT_UTILITY_UTILITY_BLINK_PLATFORM_IMPL_H_ | 6 #define CONTENT_UTILITY_UTILITY_BLINK_PLATFORM_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "content/child/blink_platform_impl.h" | 11 #include "content/child/blink_platform_impl.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 namespace scheduler { | 14 namespace scheduler { |
| 15 class WebThreadImplForUtilityThread; | 15 class WebThreadBase; |
| 16 } | 16 } |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace content { | 19 namespace content { |
| 20 | 20 |
| 21 class UtilityBlinkPlatformImpl : public BlinkPlatformImpl { | 21 class UtilityBlinkPlatformImpl : public BlinkPlatformImpl { |
| 22 public: | 22 public: |
| 23 UtilityBlinkPlatformImpl(); | 23 UtilityBlinkPlatformImpl(); |
| 24 ~UtilityBlinkPlatformImpl() override; | 24 ~UtilityBlinkPlatformImpl() override; |
| 25 | 25 |
| 26 // BlinkPlatformImpl implementation. | 26 // BlinkPlatformImpl implementation. |
| 27 blink::WebThread* CurrentThread() override; | 27 blink::WebThread* CurrentThread() override; |
| 28 | 28 |
| 29 private: | 29 private: |
| 30 std::unique_ptr<blink::scheduler::WebThreadImplForUtilityThread> main_thread_; | 30 std::unique_ptr<blink::scheduler::WebThreadBase> main_thread_; |
| 31 | 31 |
| 32 DISALLOW_COPY_AND_ASSIGN(UtilityBlinkPlatformImpl); | 32 DISALLOW_COPY_AND_ASSIGN(UtilityBlinkPlatformImpl); |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 } // namespace content | 35 } // namespace content |
| 36 | 36 |
| 37 #endif // CONTENT_UTILITY_UTILITY_BLINK_PLATFORM_IMPL_H_ | 37 #endif // CONTENT_UTILITY_UTILITY_BLINK_PLATFORM_IMPL_H_ |
| OLD | NEW |