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 { |
| 14 namespace scheduler { |
| 15 class WebThreadImplForUtilityThread; |
| 16 } |
| 17 } |
| 18 |
13 namespace content { | 19 namespace content { |
14 | 20 |
15 class WebThreadImplForUtilityThread; | |
16 | |
17 class UtilityBlinkPlatformImpl : public BlinkPlatformImpl { | 21 class UtilityBlinkPlatformImpl : public BlinkPlatformImpl { |
18 public: | 22 public: |
19 UtilityBlinkPlatformImpl(); | 23 UtilityBlinkPlatformImpl(); |
20 ~UtilityBlinkPlatformImpl() override; | 24 ~UtilityBlinkPlatformImpl() override; |
21 | 25 |
22 // BlinkPlatformImpl implementation. | 26 // BlinkPlatformImpl implementation. |
23 blink::WebThread* currentThread() override; | 27 blink::WebThread* currentThread() override; |
24 | 28 |
25 private: | 29 private: |
26 std::unique_ptr<WebThreadImplForUtilityThread> main_thread_; | 30 std::unique_ptr<blink::scheduler::WebThreadImplForUtilityThread> main_thread_; |
27 | 31 |
28 DISALLOW_COPY_AND_ASSIGN(UtilityBlinkPlatformImpl); | 32 DISALLOW_COPY_AND_ASSIGN(UtilityBlinkPlatformImpl); |
29 }; | 33 }; |
30 | 34 |
31 } // namespace content | 35 } // namespace content |
32 | 36 |
33 #endif // CONTENT_UTILITY_UTILITY_BLINK_PLATFORM_IMPL_H_ | 37 #endif // CONTENT_UTILITY_UTILITY_BLINK_PLATFORM_IMPL_H_ |
OLD | NEW |